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




Answer this question

Store value in Database

  • Jasmine2501

    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.



  • sally_de

    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


  • SilvanG

    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



  • Sailu

    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


  • Store value in Database