Combobox & Textbox - plz help quickly..

mistaken_myst

Active member
Joined
Oct 29, 2007
Messages
25
Programming Experience
Beginner
Hello, can we listen to events in vb.net? if yes, help plz - That is:

Whenever I choose a value from my combobox, I generate a value into a Textbox (according to the value from the combobox).

How can I do this whenever the combobox value is changed? (meaning each time its state changes?)
 
What value do you want the text box to display? The selected index, the selected item, the selected text, the selected value?

' display the selected index of the comboBox
textBox1.text = comboBox1.selectedIndex
' display the selected item
TextBox1.text = comboBox1.selectedItem
 
sory, I wrongly explained myself ..- & this was found not as urgent as something else I was doing in the mean time..

Anyway... How can I prevent the user from entering a custom Text & limit him to the cbo list?
 
Back
Top