Hi. I am very new to C# and needed help. Use to program in Delphi but
switching to C#. I am just starting my very first application and already
don't know what to do. Here is what I'm trying to do.
I have 2 comboboxes. 1st combobox is filled (dataset binding) with list of
companies from the form load. The 2nd combobox, contain list (filled from
dataset then bind) of employees where each employee belongs to a specific
company. So, when someone selects a company in the 1st combobox, a query
gets executed and the result (based on the company filter) gets loaded in
the 2nd combobox.
Here is the problem. When I run the program, during form load, I get errors
cuz the 1st combobox SelectedIndexChanged event fires.
Is there a way to not trigger the SelectedIndexChanged event during
formload? Also, how do I get the ValueMamber of the combobox and assign it
to a variable?
Any help will be greatly appreciated.
Thanks,
Rick..