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

مشاهدة النسخة كاملة : Arrow keys and textBox cursor



C# Programming
06-01-2009, 01:50 PM
I have a simple windows form app in C# using VS2005. I have a pointer in a pictureBox which I move round the form in response to the arrow keys on the keyboard (using the KeyDown handler). The problem is I have some read-only textBoxes and when I press the arrow keys I end up with a cursor moving along the text in my textBox. How do I stop this. Also the response to the keypresses is very slow at times - I'm not sure if it is related to the textBox issue. Can anyone suggest a solution please.