I Writed A Program With Combobox
Please See The Attachment
My Problem is When i Select Kerala As The State The District Combobox will show the districts in kerala . I Selected Thrissur as District. Then I changed State To Tamil Nadu. But The Thrissur Is Still there ! .
What Should I Do To Clear This Problem?
I used This Code
I would suggest you to add this line ComboBox2.SelectedIndex=0 at the end of the ComboBox1_SelectionChanged routine.
This selects automatically the first entry in in ComboBox2.
Personally I would also add ComboBox1.SelectedIndex=0 just before Form1.Show in the App_Start routine.
This selects by default the first entry in ComboBox1.
The default selected entries could also be initialised with values from an Init file.