|
-
July 26th, 2010, 06:03 AM
#1
VC++ key down event help
hi im trying 2 move a picturebox in VC++ with my arrow keys i know its keydown event i want to use and well i cant seem to get it working ive tried alot all i can think of that is
this is pretty much what i have its basically what ive been playing with
private:
void pictureBox1_KeyDown( Object^ /*sender*/, System::Windows::Forms::KeyEventArgs^ e ) {
switch(e->KeyCode)
{
case Keys::Right :
pictureBox1->Left += 100;
}
}
and when i press right key it dont work im lost for ideas thats just 1 of like 20things ive tried
help plz ^^
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|