I have a list(Of Strings) List. I need to save each item in the list to a table in a database.
I could Iterate through the list and save each item to the database. But if I have 10 items in the List then I have to do 10 calls to the database.
Is there a better way to do this so I don't have to...
I have a vb.net windows application. I have a textbox that has a 'Leave' method. Inside the 'Leave' method I have a textbox2.focus call so when the code gets to the end of the 'Leave' method the focus will then go to textbox2.
Heres the problem:
So the focus is on the textbox and I hit the Tab...
on a page when you want to do anything with SQL you first have to put
con = New SqlConnection(connectionString)
and then when you are done you have to close the connection
My question is if on the same page you have other SQL quieries you need to do. Can you just declare con = New...
I have an MdiParent form and several child forms that open inside the MdiParent.
But within one of the child forms(lets call it Form1) I have a button that when clicked it opens another form(lets call Form2). The problem is that when I click the button on Form1 it opens Form2 but Form2 is not a...
I have a MDI form with a MenuStrip on it.
I have another child form for the MDI Form.
What I would like to do is that when the Child Form closes it hides one of the items on the MenuStrip on the MDI Form.
I made the MenuStrip on the MDI Form Public.
then in the Child Form on the Disposed Event I...
I was wondering if there was a way to change the font or even make bold one word in the middle of a string?
So like you do in HTML with:
Is there a way to do that in VB.net in window forms?
I am using this code which I got off the net.
I am trying to send a txt file to an Intermec PM4i label printer that takes RAW data and prints out labels. I have loaded the driver and have set up the printer on the machine. I can go into Printers and Faxes select the printer and go into the...