Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations wOOdy-Soft on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

combobox dropdown: cursor bouncing

Status
Not open for further replies.

tutuster

Programmer
Feb 2, 2005
41
FI
I have a combobox which is editable (text) in order to limit the box's displayable items (to clarify: database has 10k+ entries, by typing e.g. "smith" the results limit to entries which have the string "smith" in it). The problem is:

when i type the limiting string and click the box to dropdown, the cursor bounces from the end to the beginning. The cursor should stay at the end of the typed string. Is there a way to control the cursors position in a string?
 
Set its SelectionStart propertyto end of the string
take a look at select method also
 
If you mean it is bouncing to the beginning of the TextBox portion check out SelectionLength, etc.

If you are talking about where in the dropdown list it appears then save your value before applying the filter and then set SelectedValue to the old value. Or if you want it at the end of the list always, set SelectedIndex = Items.Count - 1 after applying the filter. Good LucK!

Have a great day!

j2consulting@yahoo.com
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top