shortcut key

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Dear ,,

The problem is little.. when using a combobox on my form having the values
for selects .. then put the the code on the gotfocus as the send key
command %{down} as to make it auto press for the selection when got focus ..
but as so when I want the focus to be back to the previous texbox or
commandbutton it's stunned and not responded ... so may I have a command to
set focus back the previous texbox as I press the arrow back.
Thanks Thanks
 
Why don't you use the method DropDown on the ComboBox

e.g.
on the got focus event :

YourCombo.DropDown
 
Thanks

The making of this won't do any different from the last action code...so
what is the problem is how to insert the code between IF ....... THEN
IF {{{ 'when pressing arrow back'}}} THEN
SendKeys "{ESC}", True
SendKeys "{LEFT}", True
END IF
as so when pressing the arrow back the making would do much easier
Thanks
 
Can't you handle this from The KeyDown Event on that Control?


Private Sub Combo2_KeyDown(KeyCode As Integer, Shift As Integer)

If KeyCode = 40 And Shift = 0 Then
' do something
KeyCode = 0
End If
End Sub
 
eeeeer

This still on the verge, it make when pressing the arrow down to go back to
the previous textbox, so.. ... as your code deny pressing arrow left as
back.....
 
Back
Top