Hello,
I am using a tab control with two tabs (Tab1, Tab2) and a combobox (Combobox1, Combobox2) on each tab. Both of the comboboxes are populated with identical values from the DB.
On Tab1 if I select somthing from the combobox1, it should also be selected from the combobox2 on Tab2 and it works fine. On Tab2, I want to be able to select something on combobox2 and not have the combobox1 be changed and that works fine too. The problem is when I select somthing from combobox2 on Tab2 and click the Tab1, it fires the selectedindexchanged event again on combobox1 on Tab1 and will change the value on combobox2 on Tab2 to what is in combobox1. I am not sure whay that is happening. Can anyone help? Thanks in advance.
I am using a tab control with two tabs (Tab1, Tab2) and a combobox (Combobox1, Combobox2) on each tab. Both of the comboboxes are populated with identical values from the DB.
On Tab1 if I select somthing from the combobox1, it should also be selected from the combobox2 on Tab2 and it works fine. On Tab2, I want to be able to select something on combobox2 and not have the combobox1 be changed and that works fine too. The problem is when I select somthing from combobox2 on Tab2 and click the Tab1, it fires the selectedindexchanged event again on combobox1 on Tab1 and will change the value on combobox2 on Tab2 to what is in combobox1. I am not sure whay that is happening. Can anyone help? Thanks in advance.