binding combobox.text not compatible with arrow keys?

binding combobox.text not compatible with arrow keys?

Post by David J Ro » Sun, 22 May 2005 00:59:58


I have a combobox manually filled with a couple of items. I want to bind the
combo to a dataset to store the value selected. As there is no datasource
for the combo and no valuemember set, I am binding to the text property
rather than the selectedvalue.

Is this right?

Whilst this works fine when selecting an item from the combo using the
mouse, if I use the keyboard (arrow keys), the text in the combo changes,
but the change is not registered with the bindings, so when I come to save,
I get a nullexception. I believe that binding to the text property uses the
textchanged event which after checking, does not get fired when using the
arrow keys.

Is this the correct behaviour?

What can I do to allow selection using the arrow keys?

Thanks
 
 
 

1. Listbox arrow key bindings not working?

2. Control+Arrow Key and Control + Shift+ Arrow Key Error?

Hi,

For work I need to skip around data columns and rows on a usual basis. I
use a variety of versions of Excel on a variety of version of operating
systems through out the building. However on my main computer Excel 2002 /
Windows XP the Control+Arrow Key (Left or right) short cut only moves the
cursor from page to page instead of stopping at the end of a continuous data
set. The Control+Shift+Arrow Key (Left or right) does the same thing
highlighting the row from page to page again instead of stopping with the
data. Now the Control + Arrow Key (up or down) works fine stopping with the
data. However Control+Shift+Arrow Key (Up or down) does absolutely nothing.
The cursor doesn't move at all. I have looked thru the software options of
the different versions and can not find anything that might help. I
unfortunately do not know anything about visual basic. Any ideas on what is
wrong and how I might fix it? Thanks. Earl

3. The back space arrow key does not highlighted text

4. How come sometimes the arrow keys do not work in a text box?

5. Text box that has either No arrow or Up Arrow or Down Arrow in

6. Text box that has either No arrow or Up Arrow or Down Arrow in it.

7. Combobox Dropdown and Continuous Form Arrow Keys

8. Combobox and Arrow Keys (?)

9. ComboBox fires click event on arrow key

10. Using keyboard arrow keys in combobox moves cursor to next field

11. Combobox - Cycling Through Items with Arrow Keys?

12. Thanks - How do you make a ComboBox display text and not the Primary Key ID?

13. How do you make a ComboBox display text and not the Primary Key ID?

14. Overwriting right arrow key binding for tk table

15. ActiveX control does not allow arrow key input until tab key press