@TheChoco33 1. If e.KeyCode = Keys.Up Then 3. 'PictureBox1.Top -= 10 4. MsgBox("Key Up Pressed") 5. ElseIf e.KeyCode = Keys.Down Then 6. 'PictureBox1.Top += 10 7. MsgBox("Key Top Pressed") 8. ElseIf e.KeyCode = Keys.Left Then 9. 'PictureBox1.Left -= 10 10. MsgBox("Key Left Pressed") 11. ElseIf e.KeyCode = Keys.Right Then 12. 'PictureBox1.Left += 10 13. MsgBox("Key Right Pressed") 14. End If 15. End Sub
wtf i get an error on the private sub down that says "method or data member not found" and i dono y i get it : ( but other than that all the buttons work
Although functional, the way you coded it made it more difficult than it actually is.
Making a sub for every little thing (especially something which will only be used once, in one place in the code) will become a huge mess to deal with when the program's code exceeds a certain length.
Custom subs are really only useful when the code is used in several places, or it's a very large amount of it and it would degrade the readability of the code it would be placed in.
wow, you kinda just saved my life... ty.
ThePutrilicious 2 weeks ago
your video looks a little blury try useing camstudio
buck0320 6 months ago
nice tut... :) ..thank you...
chammieloves17 1 year ago
Comment removed
YourMomBakesPies 1 year ago
Comment removed
YourMomBakesPies 1 year ago
Comment removed
YourMomBakesPies 1 year ago
dosent work
omarrrio930223 2 years ago
can you do a request on a bitblt moving sprite
cause iam haveing troubles please my name is
wrath186 so please help me
wrath186 3 years ago
what do you mean by bitblt?
Zeradok 3 years ago
if you need the code for VB 2006 or 2008 to move the picture with arrow keys send me a message and ill send a typing tutorial k.
5lv5 3 years ago
oopsie ... i exedently rated your comment bad ... sorry ... Xd
1Mihailo 1 year ago
@5lv5 can u help me please
TheChoco33 1 year ago
This has been flagged as spam show
5lv5 1 year ago
wtf i get an error on the private sub down that says "method or data member not found" and i dono y i get it : ( but other than that all the buttons work
slipknotismygod 3 years ago
try to check it again. Because, I have already tried it, and it works
Zeradok 3 years ago
well it works nevermind!
OlloX3 3 years ago
Although functional, the way you coded it made it more difficult than it actually is.
Making a sub for every little thing (especially something which will only be used once, in one place in the code) will become a huge mess to deal with when the program's code exceeds a certain length.
Custom subs are really only useful when the code is used in several places, or it's a very large amount of it and it would degrade the readability of the code it would be placed in.
Physcol 3 years ago
doesnt work!
OlloX3 3 years ago
Though the code wasn't written as simply as it could have been, it's still functional. If it doesn't work for you, that means you did it wrong.
Physcol 3 years ago