R
Rob R. Ainscough
What I'm trying to accomplish is:
Disable a ComboBox (not bound to any data) when a .Clear method is
executed.
So far a cboComboBox.Items.Clear does NOT trigger any of the events I
expected it would. I've placed break points in the following events and
still they are not triggered:
Click
SelectedValueChange
ValueMemberChange
TextChange
DisplayMemberChange
BindingContextChange
What I'm trying to accomplish is whenever a ComboBox is cleared I want it
disabled. I was hoping some event would be triggered where I could just add
the following code:
cboComboBox.Enabled = (cboComboBox.Items.Count > 0)
Any suggestions? Have I just not found the right event?
Thanks, Rob.
Disable a ComboBox (not bound to any data) when a .Clear method is
executed.
So far a cboComboBox.Items.Clear does NOT trigger any of the events I
expected it would. I've placed break points in the following events and
still they are not triggered:
Click
SelectedValueChange
ValueMemberChange
TextChange
DisplayMemberChange
BindingContextChange
What I'm trying to accomplish is whenever a ComboBox is cleared I want it
disabled. I was hoping some event would be triggered where I could just add
the following code:
cboComboBox.Enabled = (cboComboBox.Items.Count > 0)
Any suggestions? Have I just not found the right event?
Thanks, Rob.