Visual Basic Development Bookmark and Share   
 Home > Visual Basic Language > Store value in Database
 

Store value in Database

Hi all,

how are you...???

can anyone please tell me how can i store value of TextBox(s) and ComboBox(s) in Database???

and in form1 which command will make values of textboxes selected while pressing tab..???

Thank you

Vimal_Rupera  Friday, February 16, 2007 9:24 AM

Hi

There is a recent post here that deal with adding data to a database http://forums.microsoft.com/MSDN/ShowPost.aspx?PostID=1219165&SiteID=1

Take a look at the system.data namespace ... system.data.sqlclient if using sql server and post any specific questions that you may have.

Your last line is a little hard to follow ... am I right to presume that when the user presses a tab you want to move focus to a text box within that tab's container?

If so, take a look at the control.select method. You'd probably want to do this on the click event of the tab strip item; you can also accomplish the same thing by setting appropriate tab index values.

To simply select a region of text within a text box, use the select or selectall methods,

Richard

iProgrammer.co.uk  Friday, February 16, 2007 9:49 AM

Hi

There is a recent post here that deal with adding data to a database http://forums.microsoft.com/MSDN/ShowPost.aspx?PostID=1219165&SiteID=1

Take a look at the system.data namespace ... system.data.sqlclient if using sql server and post any specific questions that you may have.

Your last line is a little hard to follow ... am I right to presume that when the user presses a tab you want to move focus to a text box within that tab's container?

If so, take a look at the control.select method. You'd probably want to do this on the click event of the tab strip item; you can also accomplish the same thing by setting appropriate tab index values.

To simply select a region of text within a text box, use the select or selectall methods,

Richard

iProgrammer.co.uk  Friday, February 16, 2007 9:49 AM

I have a form where i m having 2 textboxes named txt_name and txt_surname

now on click event of save button i want to store value of txt_name in VIMAL(database name) INFO(tablename) [NAME,SURNAME(fields name)

can you please mention the command line of save button's click event for the same.

Thank you.

Vimal_Rupera  Friday, February 16, 2007 10:50 AM
Vimal_Rupera wrote:

I have a form where i m having 2 textboxes named txt_name and txt_surname

now on click event of save button i want to store value of txt_name in VIMAL(database name) INFO(tablename) [NAME,SURNAME(fields name)

can you please mention the command line of save button's click event for the same.

Thank you.

Did you read the previous link I posted? It shows how to interact with a database

Richard

iProgrammer.co.uk  Friday, February 16, 2007 2:09 PM

Hi

how are you???

how can i make value of combobox null on click of button

like we make value of textbox null with command textbox.text = ""

what command will give the same effect to combobox????

thank you

Vimal_Rupera  Monday, February 19, 2007 10:03 AM

You can use google to search for other answers

Custom Search

More Threads

• How to use the XMLDataReader
• Notify Icon - how to run application properly by logon, in tray mode?
• NEED HELP BADLY!! VS NOT UPDATING CODE!!
• VB2k5: Error - Must declare the scalar variable @name
• Reliability Index Rating in Vista
• Live Variables?
• Comparing Several Textboxes
• VB.NET Function that acts like T-SQL COALESCE Function
• Sorting Strings and Characters
• Running Remote Scripts