shankar_it Posted September 1, 2006 Posted September 1, 2006 Is there a way to automaticlly start showing all or some of the list of words in the combobox when i just start typing in some characters ie the way it behaves when i click the small arrow mark in combobox and then start typing the words.My aim is to just avoid the user to click the arrowmark and just start showing the user the list when he starts typing in the box. Quote
Leaders snarfblam Posted September 1, 2006 Leaders Posted September 1, 2006 If you are using .Net 2005 you can set the AutoCompleteMode to "Suggest" and AutoCompleteSource to "ListItems". Quote [sIGPIC]e[/sIGPIC]
shankar_it Posted September 5, 2006 Author Posted September 5, 2006 No9 i am using 2003.Is there a way to do it? If you are using .Net 2005 you can set the AutoCompleteMode to "Suggest" and AutoCompleteSource to "ListItems". Quote
Cags Posted September 5, 2006 Posted September 5, 2006 I'd imagine you'd have to-do it manually. Store the full list in an array of some kind, then on each key press by the user add the relevant items from the array to the list. Quote Anybody looking for a graduate programmer (Midlands, England)?
shankar_it Posted September 5, 2006 Author Posted September 5, 2006 I am not sure if the autocomplete is the right solution. cags i already have loaded the collections in the combo box.all i want it to know the event which i can use to show the listings in the drop down just when we start typing some thing in the dropdown like it happens when you click the arrow mark in the drop down list. I'd imagine you'd have to-do it manually. Store the full list in an array of some kind' date=' then on each key press by the user add the relevant items from the array to the list.[/quote'] Quote
shankar_it Posted September 5, 2006 Author Posted September 5, 2006 Like on Keypress or ontextchange even of the combo box i am lookiing to expand the dropdown box I am not sure if the autocomplete is the right solution. cags i already have loaded the collections in the combo box.all i want it to know the event which i can use to show the listings in the drop down just when we start typing some thing in the dropdown like it happens when you click the arrow mark in the drop down list. Quote
techmanbd Posted September 5, 2006 Posted September 5, 2006 try this and see if this is what you are looking for Private Sub ComboBox1_KeyPress(ByVal sender As System.Object, ByVal e As System.Windows.Forms.KeyPressEventArgs) Handles ComboBox1.KeyPress Me.ComboBox1.DroppedDown = True End Sub I also have the "Dropdownstyle" properties set to "DropDown" Quote Live as if you were to die tomorrow. Learn as if you were to live forever. Gandhi
shankar_it Posted September 5, 2006 Author Posted September 5, 2006 yes thankyou techman. try this and see if this is what you are looking for Private Sub ComboBox1_KeyPress(ByVal sender As System.Object, ByVal e As System.Windows.Forms.KeyPressEventArgs) Handles ComboBox1.KeyPress Me.ComboBox1.DroppedDown = True End Sub I also have the "Dropdownstyle" properties set to "DropDown" Quote
shankar_it Posted September 5, 2006 Author Posted September 5, 2006 I have one more question is there any kind of outof focus event in combobox. My aim is to automatically fire some events when user goes out of focus of combobox yes thankyou techman. Quote
Cags Posted September 5, 2006 Posted September 5, 2006 Try LostFocus Quote Anybody looking for a graduate programmer (Midlands, England)?
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.