Jump to content
Xtreme .Net Talk

Recommended Posts

Posted
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.
Posted
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.
Anybody looking for a graduate programmer (Midlands, England)?
Posted

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']
Posted

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.

Posted

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"

Live as if you were to die tomorrow. Learn as if you were to live forever.
Gandhi
Posted

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"

Posted

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.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...