Combo box mission impossible

ricio2000

Member
Joined
May 2, 2005
Messages
18
Location
Hialeah, FL
Programming Experience
1-3
I have a combo box who's datasource is set to a dataset when the form loads. This combo sets another combo box based on what was selected from the first combo box. I have a clear button, I want to be able to clear the contents of both combo boxes when the button is pressed. I set the datasource of both combo boxes to nothing. Only the second combo box is being cleared. The first combo box is not. Are there any senior level vb.net developers out there that may be able to tell me why this is so. I'd appreciate all the help I can get. Thank you .
 

cpryan7

New member
Joined
May 18, 2005
Messages
1
Programming Experience
5-10
Is it necessary for your project to set the datasources to nothing? If not, you could just use the Clear command as shown here:

ComboBox1.Items.Clear()
ComboBox2.Items.Clear()

If this is insufficient, can you post the code that is causing problems, so I can get a better understanding of what is going wrong?
 
Top Bottom