new - keybord does not work anymore
Posted
#1
(In Topic #522)
Trainee
And now I have a small problem, I can't program the keyboard anymore.
The code:
Code
Public Sub Form1_KeyPress()
If Key.Code = Key.F5
PictureBox1.Picture = Picture[("/home/zzz/zzz/" & "start.jpg")]
Message("well done")
Endif
EndWhat am I doing wrong?
Thanks in advance.
BTW: hopefully my English is good enough
Posted
Regular

Posted
Guru

I agree with Steve that it should be 'Form_KeyPress()' not 'Form1_KeyPress()'. Also I suggest you use 'User.Home' and the '&/' which means you don't have to worry about the correct amount of '/'.
Posted
Trainee
1 guest and 0 members have just viewed this.


