najirm Posted January 7, 2012 Posted January 7, 2012 I've two combo boxes listed with same values from the database. If I select a value from the first combo box, that value should not be listed in the second combo box. [u]ComboBox1[/u] [u] ComboBox2[/u] One One Two Two Three Three Four Four Five Five If I select 'Three' from the ComboBox1, the value 'Three' should not be listed in ComboBox2 while making a selection from ComboBox2. Quote
LamKat Posted January 14, 2012 Posted January 14, 2012 Do you mean combo boxes or list boxes. if you do mean combo boxes then do something like If ComboBox1.Text = ComboBox2.text Then combobox2.text = "four" if that is not helpful then can you please expand on your problem and what you need it to do (why should it do what you want it to do) Quote
BrettW Posted February 2, 2012 Posted February 2, 2012 idk but try this: put it in the combobox1 text changed bit combobox2.items.remove(combobox1.text) Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.