المساعد الشخصي الرقمي

مشاهدة النسخة كاملة : Moving an object on the form using keyboard



C# Programming
04-28-2012, 10:01 PM
Hi everyone.

I have drawn a square on the screen/form using GDI. Now I want to move this object around using keyboard inputs. I just want it to move along the x-axis using left and right arrow keys. I can assign the keys but the problem is making that object move. You help on this is highly appreciated.