ComboBox Set back to null value?

keigo

Active member
Joined
Oct 27, 2008
Messages
29
Programming Experience
Beginner
After user selects an item, and decides to select another one, the item selected will still be there.

Can we make it, so the combobox drop down set back to NULL? when user decides to select another one.

Thank you.
 
I tried this:

If RadioButton1.Enabled = False Then

ComboBox1.Text = ""

End If

But the value of the ComboBox1 will not revert back to NULL.
 
I think I better show a picture of what I want to accomplish. Please view it here.

When user selects New Baby after accidentally selecting Anniversary and selecting 5 items (Quantity). The 5 variable will not be reverted back to former condition which is blank - (e.g the New Baby combo box).

I guess it is quite clear about my problem. Again, I am new and slow at this, please bear with me.

Is there a way to make it back to the former setting?

Thank you in advance.
 
Handle the CheckedChanged event of your RadioButton and, if the Checked property is False, set the SelectedIndex of the ComboBox to -1.

In future, please attach your images directly to your post instead of using an external site. Attaching files is done in the advanced editor.
 
Hi jmcilhinney,

Sorry about the file attachments. I would use directly from this advance feature in future.

Thank you for your prompt accurate responds.
 
Back
Top