ComboBox Behavior in DropDownList

  • Thread starter Thread starter C Glenn
  • Start date Start date
C

C Glenn

I am trying to create an incremental search feature within a ComboBox.
I'm finding the successive members of the list alright but I haven't
been able to figure out how to stop the ComboBox from changing the
SelectedItem when the user types a key.

Does anyone know how to turn off this 'feature'?
 
Try handling it's KeyPress event, and set the "Handled" property, from
the System.Windows.Forms.KeyPressEventArgs paramiter, to true. You may
also try to override it's "OnKeyPress" member, and set it to true
before calling the base class' procedure.
 
Try handling it's KeyPress event, and set the "Handled" property, from
the System.Windows.Forms.KeyPressEventArgs paramiter, to true. You may
also try to override it's "OnKeyPress" member, and set it to true
before calling the base class' procedure.
Another method would be to save the current SelectedIndex, and in the
SelectedIndex changed event, set the index back to the saved value.

HTH

Ron.
 
Back
Top