I'm using the PrintPreviewDialog. Works great, but I really need to allow the user to select a printer instead of just having the print go directly to the default printer. Any ideas on this? Can't believe it isn't default functionality in the control.
I need to print the contents of 3 textboxs to default printer. what examples I have found dont seem to work. I was trying the documentprint1 component as i thought it would be easy but cant figure out how to tell it what to print the second part is to print a variable (string) to the printer as well.no need for user to select just straight to default printer with its default settings
I want to print an array WebBrowser each time to a different printer without changing the default Printer (not to use the SetDefaultPrinter function) I tried to work with the PrintDocument object(he have the Print function and also i can choose a printer name) but I cant attach the
For my current application development I need direct printing technique,For the purpose I refer Microsoft Support page Titled"How to send raw data to a printer using VB.Net "The code snippnet specified is perfect for my application.Refers link [URL]But I need something more like Setting the Printer font to Condensed.By default my printer use the font 10cpi ,by using this font size I limited to print only 80char on A4 sheet,but I have more than 80 char on line so I prefer Condensed font size.
get a list of printer's (name,port,model) from a computer over the network. I know how to list my own, but it's from querying the Win32_printer object on my machine, I need to be able to do something similar on a remote machine.
1. Detect if my printer is busy, because my code tells the printer to print more pages that it can cope with, so I need to delay the command for 'Print the next page' until the printer has finished printing the previous one.
2. Shift the output to my printer so that it gets printed in it's entirety on the paper, instead of seemingly being anchored to some nebulous point on the A4 page. It starts printing at X = 29mm from the left edge, and Y is 28mm from the top, and stops at X = 22mm from the right edge and Y stops at 22mm from the bottom edge, leaving (aprox) 50mm of X and 50mm of Y unprinted.
3. Get useful information on Bounds, which I'm fairly certain is what I need to control where my printing should start and finish.
I've hunted through this forum, MSDN, 'Help' (a misnomer if ever there was one) the VB Library and one or two other forums, which either baffle me with reams of code or suggest code to try which either just don't work or which doesn't declare all the variables and usually don't suggest what type of variable I need, it's all very frustrating
I am busy with a Windows Forms application.The purpose of the application is to convert Excel documents to HTML format so that they can be published to a website.I have most of the code finished and the application is looking really good.I have although encountered a problem. On the Form I have created an Export, File and Edit button.With the edit button I would like the user to be able to select whether they would like to save the 1st,2nd,3rd sheet and so forth.
I would like to create a window/Form within the edit button that would say something like "select excel sheet" along with a save button where the required sheet number could be saved or selected as a standard save procedure everytime.I know that I need to do this with the settings.settings control. I have tried numerous ideas up until now but it continues to baffle me.
I am designing a backup/restore utility for work.atm i have been able to populate field for PC name, IP address, MAC address, number of printers installed on the PC but i am wondering is it possble to get all the printer information 'with the click of a button' to print all information like the prnmngr.vbs script down.I am able to run a batch file but i wanna get it to go from that app or even embed to batch file to the app and run it form there .
I have a label printer (Argox 1000-x) and i want to print some datas on it. And this printer is connected to my computer via the COM1 port. I can open/write COM1. And when i send some data to printer through COM1, Label Printer's Ready Signal Led will be ON/OFF. But it does not print anything or any label..
I have a form with a tic tac toe game on it. I have been trying to make it have a single player mode by allowing the computer to select one of the 9 buttons. However I can't even get it to select one of the buttons. Is there anyone out there that can help point me in the right direction.
I have 4 radio buttons, r1, r2, r3, r4. These four radio buttons are in a group box.
r1 and r2 for asking the gender of person.
r1 for Male , r2 for Female
r3 and r4 for asking whether the user would like to continue.
r3 for Yes , r4 for No.
When I click r1 , r3 becomes unchecked and vice versa. Similar is the case with r2 , r4. So at a time I can check only one radio button. How can I get around this problem . The groupbox is essential so I cannot remove it.
I am trying to make a utility for my personal use. I want it to log into a website and fill out a form for me. So far, I can get it to fill in the input boxes and select the right options from the comboboxes.
I am having a problem with the radio buttons on the form.
Here is how I use webbrowser to select MICHIGAN from the list of states. This works fine, and I present it as an example of what I am trying to do:
I am trying to find something that will do the same thing, but with a radio button. So far, nothing I do will work. There are two radio buttons. One basically says: "Yes, I would like this item - add it to my shopping cart." The other says: "I decline this item." I want to select "I decline this item."
ListView Properties- I set MultiSelect to False, LabelEdit to true,FullRowSelect to True. I have Listview with two columns.
1) When I select onw row in listview,On button click i want to get the index of selected row. I m getting it but using for loop,I want to know is there a way to know the index of selected row,Without using the for loop.Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
I am trying to select a folder in a very similar way that we do using "OpenFileDialog". I searched for different sites and did find something but all of codes were tweaking "OpenFileDialog" and selected files..... I have seen applications where the select dialog box does NOT show the "File Type" as well as the "Open" button has "Select" name on it. Any idea how to get such dialogbox?
I created this. This is a lesson in a class I'm takingWhat the program is trying to do is this; If the radio button for member is selected and they are under 65 they pay $10. If they are a member and 65 or over, they pay $5. If they are not a member the fee is then $20. There are 4 radio buttons: Member, Non Member, Under 65 and 65 and Over. The code below is what I had in there. VS shows no errors and the thing runs, but it produces incorrect results every time (e.g. Non Member radio with Over 65 radio answers $10).
Dim blnFee As Boolean Const decNonMem As Decimal = 20 Const decMemUnder As Decimal = 10 Const decMemOver As Decimal = 5 Select Case blnFee Case radNonMember.Checked, radOver65.Checked lblFeeAmt.Text =
I have an asp drowndownlist and I'd like to change its selection after a button click. I can't seem to find a way to do this, is there a way? (Its a reset button of sorts, and I would like the dropdownlist to return to the "default" value.)
I am new to VB 2005, and need help with use of radio buttons. I have two sets of radio buttons set up in my from, each set has three buttons. The problem is that when I run my program, it runs them as one set (i.e. I can only select one button in the form) I want to be able to select one button from each set, how is this done?
For example I have 2 things in the listbox:Install Registry keyDelete filesIf I choose "Install Registry Key" then the button should install the registry key when clickedIf I choose "delete Files" then the button should delete files when clicked
I have an application that has a timer. Every hour, the application will see what time it is. If it is after 5 P.M., then the application will shut the computer off. (For power saving purposes)I have a messagebox pop up warning the user. I want the user to be able to hit "Cancel" on a dialog box if he/she is still working on the computer and reset the timer to ask again in about an hour. If the user isn't there to select a button on the messagebox, I want the computer to turn itself off. But I can't get the code to skip the dialog box after so many seconds. [Code]
I am currently trying to develop a program where you click on a datagridview row and then at the bottom of the window there is a button called "Modify."Once you hit this button, another window will pop open to where the user can modify the information on that specific datagridview object.I want the program to fill in what has already been entered so the user can go back and make changes if need be.I understand that datagridview has it's own update commands, but when I created by table adapters and everything, it did not create them.I am not sure if there is a way to create the update command manually, but this is the best way to explain it.
i am developing a simple vb.net application. i have three forms in my app. the first form has 2 radio buttons from which i need to select one. based on the selection made in my next form a combobox ll be populated.so far so good.there is a back button on my 2nd form which when clicked redirects me to the first form. here when i select the next radio button the combo box in the next form does not populate accordingly. it still holds the old values. \[code]
I have a listview with a few items like below. What I need is when I select an item in the listview then click a button it will go to the url that in the second column in a webbrowser. So when I select an item then click a button it will do webbrowser1.navigate(listview1.selecteditem) or something like that but I cannot figure out how to get just the url.
In html it's easy to get a button to get an file on your local hard drive but I can't seem to find or remember how to do it for a VB application (using Visual Basic 2010). What I would like is for the button to find a local directory, select it and then add the address to a textbox.
Dim i As Integer If Label1.Text = "" Then i = BPORes_csvDataGridView.CurrentRow.Index Label1.Text = BPORes_csvDataGridView.Item(0, i).Value
I have this code in the click event for a button I want to be able to select a row in my datagridview then Hit the ok button and have it populate to text box1 if textbox1 is already filled then i want to go to textbox2 and so on, (total of 6) So far if extbox1 is empty "" and i click ok button it populates, when i click ok button again to textbox2 does not populate.