I want my control or focus to pass on next component by pressing enter key or up-down keys.I am using vb6.
I tried this code
sub form_keypress(index ...)
if keycode=13 then sendkeys("{TAB}"
if keycode=38 then sendkeys("{TAB}"
if keycode=40 then sendkeys("{TAB}"
end sub
The above code work fine for enter key only but the above event doesn't fire for up-down key press.
I tried this code
sub form_keypress(index ...)
if keycode=13 then sendkeys("{TAB}"
if keycode=38 then sendkeys("{TAB}"
if keycode=40 then sendkeys("{TAB}"
end sub
The above code work fine for enter key only but the above event doesn't fire for up-down key press.