JDTrakal
New member
- Joined
- Oct 28, 2010
- Messages
- 3
- Programming Experience
- Beginner
Hi, this is my first time here so I apologise if I've placed this in the wrong area.
I'm currently working on a project for university, basically we were given an incomplete program to finish off with bonus points for adding addition features in.
Part of the program is to move an image (a monkey) around the picture box (pen). Now to move the monkey we use 4 buttons on the form called Up, Down, Left and Right, however as we need to move the monkey around to test other parts of the program it gets annoying having to click on the button.
As such I was able to get some code which allows me to move the monkey around using the arrow keys (I think you can all see the benefit of this). When I use the code in a blank form it works fine, however when I add a button onto the form the arrow keys will instead highlight the buttons.
I have figure our a way around this, basically set up a button to disable all buttons on the form until a certain key is pressed, however I would prefer not to have to do this.
Can any one help me with this please?
Thanks
I'm currently working on a project for university, basically we were given an incomplete program to finish off with bonus points for adding addition features in.
Part of the program is to move an image (a monkey) around the picture box (pen). Now to move the monkey we use 4 buttons on the form called Up, Down, Left and Right, however as we need to move the monkey around to test other parts of the program it gets annoying having to click on the button.
As such I was able to get some code which allows me to move the monkey around using the arrow keys (I think you can all see the benefit of this). When I use the code in a blank form it works fine, however when I add a button onto the form the arrow keys will instead highlight the buttons.
I have figure our a way around this, basically set up a button to disable all buttons on the form until a certain key is pressed, however I would prefer not to have to do this.
Can any one help me with this please?
Thanks