Make A Small Application To Print From .net 2010
Sep 16, 2011I am trying to learn and make a small application to print from VB.net 2010 to my usb label printer.
View 3 RepliesI am trying to learn and make a small application to print from VB.net 2010 to my usb label printer.
View 3 RepliesOn form 1 , i have a number of buttons that open up different websites.What i want to do is when i click a button on form 1 , i want forum 2 to show ( Form2.show() ) , Form 2 will have a list (Buttons) of internet browsers.
View 4 RepliesWhat am i trying to do is this:I want to make a small application with 6 textboxes, the user should only can type numbers and the numbers should not be bigger than 20 so then when u click a button (btn_1) it should write the numbers to a txt file.after that i want to read all this numbers and if there are some same (repeated) numbers to display them in a label.
dim wrt as new system.io.streamwriter ("c:/test.txt")
wrt.write (textb1.text & textb2.text & ......)
wrt.close()
I need to make a small programm for ticketing on a parking for a small hotel.So i have 2 Printers pariking In (for delivery of the tickets) and 2 Readers PArking Out.Both Printers and REaders are working Serial.So i need to poll the serial ports of the printers and readers every second.The data is stored on a SQL database so i need to read and write in the database.Can i do this with 1 PC and 1 programm or 1 PC and 4 programms that are runnning at the same time ?
View 2 RepliesI am trying to make my program print out a requistion slip but I don't want to make a report using VB b/c sometimes the printer is not connected and it is better to have a Microsoft Word document and save it as such. So how do I create a Word application from VB? I basically am going to set out a format, make a small table etc. and then whatever the user types in the textbox, it will appear in the slip. (I am using Word 2003)
View 1 RepliesI have a little project but ive come to an error. What it does: It goes to a site, fills a form and then submits it. But the submit is too fast. I want it to fill in info, then wait 3 seconds and then submit it.
Here is the
WebBrowser1.Document.All("user[screen_name]").SetAttribute("value", TextBox4.Text & intcount)
For Each element As HtmlElement In WebBrowser1.Document.All
If element.GetAttribute("className") = "submit button promotional" Then
element.InvokeMember("click")
End If
Next
I want it to have a little pause of 3 seconds after the intcount).
I'm using a WebBrowser to print some HTML data, all works good except for the print preview called in the load completed event - It opens as a very small window in the top left, anything I can do to improve this?
Private Sub BtnPrint_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles BtnPrint.Click
Dim webBrowserForPrinting As New WebBrowser()
AddHandler webBrowserForPrinting.DocumentCompleted, New WebBrowserDocumentCompletedEventHandler(AddressOf PrintDocument)
[Code] .....
I am using the below mentioned code in my VB.net application to print two copies of pdf document.
[Code]...
I want to make a small logo in the upper corner of a Form rotate.
I've seen on some forums that they have small avatars dancing and such, so I imagine it would be posible to make a tiny image rotate by it self up in the corner in a Form.
Does anyone know how to do this? Link to tutorial, codesnippets etc..
Ps. The goal is to make it smooth. Not turn 4 x 90 degrees.
How to make a small image rotating
View 1 RepliesI want to make a standard button quite small. maybe as small as 16x16
FlatStyle.Popup
TextAlign MiddleCentre
Margin and padding are all zero
The text in the button is an upper case letter X (sanserif 8pt)But even though there's enough space the text is too low and half of it is off the bottom of the button with lots of empty space above the text.
if I make the button slightly bigger. 19x19 then all the X is visible but there's just LOTS of space above and it doesn't look good.I 'could' make my own button class but surely there's an easier way. Is there something I'm missing ? maybe some combination of margin and padding that I haven't thought of ?
I will add that if FlatStyle is Standard then it isn't as bad at 19x19 but that has thick border. I'd really like to use flatstyle popup and possibly a bit smaller than 19x19
Here's my work.
[URL]
How can i print the search result.
My instructor told us how to print documents and how to use databases. What the instructor did not mention is how to print or print a preview of records within a DatabaseDataSet. The book "Programming in Visual Basic 2010" does not explain how to print or do a print preview of Database Source records from within a form. The only thing I was told was to test the print document first before you try to do a print preview. Within a form I used a DataGridView to add, delete, and update the database. So now all I need to do is figure out how to print the updated records from the DataGridView and how to print a preview of the records within the DataGridView. So I hope my question is clear enough to give me assistance on how I can perform these two actions. Thanks this would be a great help, and since the class is online we can get assistance from any sources that we have.
View 5 RepliesI'm having trouble getting started with this application I need to do. Here are the details:
Its an application to calculate student grades for a group project. Create a text file to store names of 5 students, line by line. In a separate file enter peer evaluations from 0 to 1.0. Enter these numbers for evaluations:
1.0, 0.8, 0.9, 1.0, 0.6
0.2, 0.9, 0.5, 0.6, 0.7
0.5, 1.0, 1.0, 1.5, 0.9
0.9, 0.9, 0.9, 1.0, 1.0
1.0, 0.9, 1.0, 0.8, 0.9
This means that student 1 gave 1.0 evaluation for himself , 0.8 for student 2, 0.9 for student 3 etc.Student 2 gave 0.2 for student 1, 0.9 for him- herself, 0.5 for student 3 etc. Read these into a 2-dimensional array. If any of the values is greater than 1.0, set them to 1.0. The program should calculate the average evaluation for a student. While doing so, the program should ignore evaluations that student gave to him-herself. Populate a list box with student names when the form loads. The user should enter a project grade (same for everyone) in a textbox. Then the user can select a student from a list and click �Calculate� button. The program should display the project grade for that student by multiplying average evaluation by the grade for the whole group (project grade).
What I'm trying to do its a small application to convert *.dat files to AVI this is an in house format that we use.I already accomplish listing a folder content in this case *.dat files, this seams to be working fine where I'm a little bit stuck is trying to call a dos program from the Convert button (Button2) what I need to be able to is to pick one of the *.dat files on the ListBox1 click on the button and voila the file is converted.this is how the little think looks[URL]..the dos program would actually be in c:videoserver and the program name is videoconsole.exe and this command needs an argument /f:
[Code]...
i am trying to make a small program to encrypt files using AES, and then have the password from the AES encrypted using RSA for its use of public keys. i've got the AES part working fine and i found a good RSA tutorial here url....but after i encrypt the AES password (which is saved in a .txt file) using RSA, then i try to decrypt it again, it comes out as an empty .txt file!
View 4 RepliesWhat code would I write so to make a simple app that will import three registry keys. As if I would double click on a .reg file
For multiple reason, I dont what to have to click on the .reg file, and I cant have a .reg file there.
I have a richtextbox and when i right click i want to select a word[code]...
is it possible to make a small listbox inside a contectmenustrip??
Are there any other ways to make small databases then to use access or sql server?
View 1 RepliesI've developed a very small in-house web application with visual basic on VS2010. Can anyone give me any advice or literature s to how i can put the site on a server?
View 5 RepliesI am attempting to make a small program for my church to power on and off the projector According to the user manual I need to send the following to it. Power On: C00[CR] | Like so: "C" -> "0" -> "0" -> "[CR]". However I am getting the following error when attempting to turn it on by the program: Conversion from string " " to type 'Byte' is not valid. [code]
View 14 Repliesm using Microsoft Visual Studio Basic 2010 and im fairly new to it. Im trying to make a small program for feedback and send it to my e-mail. I have seen e-mail sender tutorials on youtube but thats not really what I am looking for. Im looking for it to be automatically sent to me, not having to type in "To" so as if its hidden I guess. So Basically
View 2 Repliesi have make 1 form in vb.net which has 1 button.i have 1 circuit which can glow a led or bulb.i want that whenever i click on that button it can pass signal to the circuit & glow the led.how can i do this.reply.....
View 1 RepliesI am trying to learn by creating a small application to help my son learn math. It works but I know there are better ways of accomplishing what I need.
For example:
'Declare variables
Dim num1 As Double = CDbl(frmMath.txtNum1.Text)
Dim num2 As Double = CDbl(frmMath.txtNum2.Text)
Dim answer1 As Double = CDbl(frmMath.txtAnswer.Text)
[CODE]...
I imagine I would need something like a do while loop?
I'm trying to write a small application that will show the GPU temperature.I'v found the following documentation about the subject: url...according to this documentation, I can use the nvcpl.dll file (which is a part of the NVIDIA driver) like this:[code]Now the problem is that this code keeps sending back 0, which means somethin is wrong here and the function is not working.
View 1 RepliesI'm writing a small application that downloads some files over ftp, the incoming directory is monitored by FileSystemWatcher_Created, on creation I want to extract some text from the file and call another application with the text as parameters the problem I have is the FileSystemWatcher_Created procedure is triggered before the file has finished downloading, I could download it elsewhere and move into the monitored directory but some of the files may be quite large and Im wondering if there is an efficient way of waiting until the file is ready? along the same lines what is the best way to queue the tasks as there can be many files coming it at one time, I've looked at threading but would that be suitable for such a task as there will still be a bottleneck at the application called by FileSystemWatcher_Created ?
heres an outline of what im doing:
Private Sub FileSystemWatcher1_Created(ByVal sender As Object, ByVal e As System.IO.FileSystemEventArgs) Handles FileSystemWatcher1.Created
'read text file
[code]....
I'm trying to make a small video-player in Vb.net with WPF.
Got everything working beside 2 things:
Mkv-files and subtitles,.
I've installed FFDShow.
I've read that if you install it to WMP, then it will automatically work to MediaElement. It did work first, but then i had DivX installed, when i uninstall'd DivX, it stopped working.
I'm trying to build a small application that will automatically visit a few websites. The list of the websites I want to be stored inside a txt file like:
website1.com
website2.com
website3.com
and when I press the "Start" button, my application will open the websites from the txt file, one by one with a delay of 10 or more seconds before loading the next website, in a webbrowser control.
I want to know how to start a forum hidden. I know I can just add Me.Hide() to the Window_Loaded event, But it's ugly. The user sees the form for a split second then it dissapears. I want to form to start up hidden. Little background on my program, it is a small taskbar application, Has a small notify icon. When the app is loaded. I only want the notify icon to be visible. I have done this by creating my own Main subroutine in a Module that I created. and I am laucnhing the application like so
Imports System.Windows.Application
Module MainModule
Sub Main()
Dim mainWin As New MainWindow
[CODE]...
I have a small Windows Application that displays a .chm Help File when F1 is pressed. What I would like to do is to close the Help Display programatically for example when a Reset Button is clicked and the Form is 'Reset'.
View 2 Replies