Overrides Sub OnKeyPress Problems
Visual Basic
1
Posts
1
Posters
0
Views
1
Watching
-
hello all, this is my first mesage here! :-D Well i'm have a litle problem... i'm trying to catch a key whit the Overrides Sub OnKeyPress and the code that I'm write was this:
If e.KeyChar = Microsoft.VisualBasic.ChrW(?) Then abol_x = bol_x bol_x += 10 mov_bola() e.Handled = True End If
the first problem that i'm have is to now the char code to the cursors keys.. is a map whit that anywere? the idea is to move a ball whit this and that is done whit the sub mov_bola, and only if i'm press the up cursor key i'm whant to execute this code Others things the ball is disign in runtime using GDI+ and designed in a picturebox any sugestion to help me on this is apreciated Thanks :cool: The Limit is your mind