Link to home
Create AccountLog in
Avatar of jack niekerk
jack niekerkFlag for Netherlands

asked on

DIRLISTBOX AND FILELISTBOX IN VB6 HANDLE FOR KEYPRESS

In dirlistbox and filelistbox it will do the job on double click mouse
how to create a situation like in explorer to have same action on pressing enter instead of mouse double click
Avatar of Dirk Haest
Dirk Haest
Flag of Belgium image

Did you check the keypress-event and the key that was pressed (chr(13) ?
Avatar of jack niekerk

ASKER

yes , keycode and keyascii will show,
doing this

Private Sub dirFiles_KeyDown(KeyCode As Integer, Shift As Integer)
If KeyCode = 13 Then
   KeyCode = 0
    filFiles.Path = dirFiles.Path  'this one should follow the action, but  dirFiles.Path does not change on keypress only on mouse click


End If
ASKER CERTIFIED SOLUTION
Avatar of eemit
eemit
Flag of Germany image

Link to home
membership
Create an account to see this answer
Signing up is free. No credit card required.
Create Account
Thanks, that does the job
regards