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 ^^
mmm strange i did that 1st excatly how u had it and it dident work :S, mm urs works on my computer soo maybe my project has somthing wrong with it ty i guess i did know how to do it >.< stupid thing lol
Last edited by RAPIST; July 26th, 2010 at 07:00 PM.
Does your nickname mean something in some language (other than English)?
Very strange choice…
Vlad - MS MVP [2007 - 2012] - www.FeinSoftware.com
Convenience and productivity tools for Microsoft Visual Studio: FeinWindows - replacement windows manager for Visual Studio, and more...
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
* The Best Reasons to Target Windows 8
Learn some of the best reasons why you should seriously consider bringing your Android mobile development expertise to bear on the Windows 8 platform.