Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

why it happens ...? SelectedItemchanged event??

Status
Not open for further replies.

rahmanjan

Programmer
Apr 13, 2003
180
AU
hi all,

In my form I am having a bound combobox and I am filling it by dataset in the form load event of the form.

By selecting an item from that combobox I need to fill some textbox pretty normal. Thereofore, in SelectedItemChanged event of the combobox i have written the code to fill the textboxes.

What happen here is that in the form load event all the code "SelectedItemChanged event" is run as well. I don't know why??

why it happens?
Am i using the right event to get the value from combobox?
how can avoid it?

regards
 
There is no event like this. There are SelectedIndexChanged and SelectedValueChanged. Maybe in the FormLoad you select a default item, so this calls the other event too.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top