Professional UI Solutions
Site Map   /  Register
 
 

Forum

Please Log In to post a new message or reply to an existing one. If you are not registered, please register.

NOTE: Some forums may be read-only if you are not currently subscribed to our technical support services.

Forums » Elegant Ribbon Tech Support » Combobox autoselect item Collapse All
Subject Author Date
Alex Pag Jan 14, 2010 - 7:23 AM

How i can set my combobox controls for automatically select some item when i press some symbol in my keyboard?

Alex Pag Jan 15, 2010 - 7:06 AM

Ok. now i see it is work. thank for this sample.I will need him. But i need other functionality.


I set my combobox.editedable = false and if i open my combobox and type ’S’ automatically selected line go in ’Spring’ or if i type ’F’ selected line automatically go in ’Fail’. i can do it?

Alex Pag Jan 15, 2010 - 2:05 AM

i try but this code don’t work...(((

Technical Support Jan 15, 2010 - 4:54 AM

It should work. When you type in "S", "Spring" should appear just like in the standard combo box. What you do you mean by it does not work?

Technical Support Jan 14, 2010 - 1:03 PM

We plan to improve support for autocomplete in a combo box in the next release. At this point please try this:

this.comboBox1.AutoCompleteMode = System.Windows.Forms.AutoCompleteMode.Append;
this.comboBox1.Items.AddRange(new object[] {
   "Winter",
   "Spring",
   "Summer",
   "Fall"});

this.comboBox1.AutoCompleteCustomSource.AddRange(new string[] {
   "Winter",
   "Spring",
   "Summer",
   "Fall"});
this.comboBox1.AutoCompleteSource = System.Windows.Forms.AutoCompleteSource.CustomSource;
this.comboBox1.SelectedIndex = 0;