combo box help

Steven Low

Active member
Joined
Apr 14, 2005
Messages
42
Programming Experience
1-3
Hi guys

I like to basically include combo boxes in my form and text boxes

I have within my button a code which transfers from combo box to the text box like tx1.Text = cb1.SelectedItem

but i am wondering i like to just transfer the text stright from combo box to the text box without a need of a button

how would i do this. I tried putting the code in the load_form but still no luck
 
SelectedIndexChanged event could be usable. This is the default event for this control, so you can doubleclick the control in Designer View and the event handler method will be generated in code.
 
Hi Got it sorted


Private Sub cb1_SelectedValueChanged(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles cb1.SelectedValueChanged
tx1.Text = cb1.SelectedItem

selected value works alot better



Thanks for your help
 
Back
Top