combobox event
-
i have a combobox and a textbox names are there in combobox list i want if i have selected any name from combobox respective surname should come down in textbox from database instantaneously leave database connectivity that i'll take care... i want front hand method....
-
i have a combobox and a textbox names are there in combobox list i want if i have selected any name from combobox respective surname should come down in textbox from database instantaneously leave database connectivity that i'll take care... i want front hand method....
manni_n wrote:
want front hand method....
Have you tried to solve the problem yourself? It sounds like you are asking someone to do your work for you.
ComboBox.SelectedText
will give you the currently selected text. Use this value in a query to get the surname.manni_n wrote:
respective surname should come down in textbox from database instantaneously
Somehow I think this is unlikely.
Paul Marfleet "No, his mind is not for rent To any God or government" Tom Sawyer - Rush
-
manni_n wrote:
want front hand method....
Have you tried to solve the problem yourself? It sounds like you are asking someone to do your work for you.
ComboBox.SelectedText
will give you the currently selected text. Use this value in a query to get the surname.manni_n wrote:
respective surname should come down in textbox from database instantaneously
Somehow I think this is unlikely.
Paul Marfleet "No, his mind is not for rent To any God or government" Tom Sawyer - Rush
thanks for your answer buddy but you didnt get that problem exactly .. i don't want selected item. it can be easily obtained from selecteditem. i want an event whenever item gets selected its respective database value gets filled in textbox. anyways i have solved the problem ComboBox1_SelectionChangeCommitted event can serve the purpose by putting query in this event. and binding the surname value in textbox
-
thanks for your answer buddy but you didnt get that problem exactly .. i don't want selected item. it can be easily obtained from selecteditem. i want an event whenever item gets selected its respective database value gets filled in textbox. anyways i have solved the problem ComboBox1_SelectionChangeCommitted event can serve the purpose by putting query in this event. and binding the surname value in textbox