SelectedIndexChanged event for combo box

  • Thread starter Thread starter Jack
  • Start date Start date
J

Jack

I have two combo box, I need to take SelectedValue from
ComboBox1, and pass
it as a parameter on SelectedIndexChanged event to another
SPROC which will fill da and populate ComboBox2. I found
in the form_load event,
SelectedIndexChanged event is triggered, but I want to
disable the SelectedIndexChanged event
in the form_load, how can I do?

Any help are appreciated. Thanks!
 
* "Jack said:
I have two combo box, I need to take SelectedValue from
ComboBox1, and pass
it as a parameter on SelectedIndexChanged event to another
SPROC which will fill da and populate ComboBox2. I found
in the form_load event,
SelectedIndexChanged event is triggered, but I want to
disable the SelectedIndexChanged event
in the form_load, how can I do?

You can use a boolean flag to indicate that the code in the handler
should not be processed when loading the form, or you can add/remove
the event handlers dynamically (in VB.NET using 'AddHandler' and
'RemoveHandler').
 
Back
Top