With the default Microsoft combo box, you are able to use eithr Alt+Up or Alt+Down to toggle the drop down of the combo box. I have tried to implement this functionality for the DropDownList control a couple of ways, but I am running into an issue.
First:
Private
Sub
RadDropDownList1_KeyDown(sender
As
Object
, e
As
System.Windows.Forms.KeyEventArgs)
Handles
RadDropDownList1.KeyDown
If
e.Alt
And
e.KeyCode = Keys.Down
Then
' When the user presses both the 'ALT' key and 'arrow' key,
'Drop down list
e.Handled =
True
RadDropDownList1.ShowDropDown()
End
If
End
Sub
I also tried:
RadDropDownList1.DropDownListElement.ArrowButton.Shortcuts.Add(
New
RadShortcut(Keys.Alt, Keys.Down))
I can get the drop down to toggle but in both cases the control still selects the next item in the list. Is there any way to get the control to toggle drop down state without selecting a new item from the list?
Thanks