Shape Control
-
Hello everyone.. I am new to C#.net. I have got a project similar to MS Word Shape. Where we can add a shape(such as rectangle or circle) and then move it or edit its properties or even delete it. The shape is a control which has 8 little squares (on corners and sides) by which we can resize it.(As i said just like MS Word2007 Shape.) Now I have already made the control move and resize.But i am facing problem with the KeyDown event of the controls. i need it to delete and move the control with the help of keyboard keys. i have already got the Control's Sizechanged, KeyPress and MouseDown events working properly. but only the KeyDown event does'nt work. it seems like this event is never called when any key is pressed.
Yogesh Prajapati
-
Hello everyone.. I am new to C#.net. I have got a project similar to MS Word Shape. Where we can add a shape(such as rectangle or circle) and then move it or edit its properties or even delete it. The shape is a control which has 8 little squares (on corners and sides) by which we can resize it.(As i said just like MS Word2007 Shape.) Now I have already made the control move and resize.But i am facing problem with the KeyDown event of the controls. i need it to delete and move the control with the help of keyboard keys. i have already got the Control's Sizechanged, KeyPress and MouseDown events working properly. but only the KeyDown event does'nt work. it seems like this event is never called when any key is pressed.
Yogesh Prajapati
I think this link should help you from Microsoft MSDN: http://msdn.microsoft.com/en-us/library/system.windows.forms.control.keydown(VS.71).aspx[^]
Sincerely Samer Abu Rabie Imagination is more important than knowledge !
-
I think this link should help you from Microsoft MSDN: http://msdn.microsoft.com/en-us/library/system.windows.forms.control.keydown(VS.71).aspx[^]
Sincerely Samer Abu Rabie Imagination is more important than knowledge !
Hi Sameer, thanks for your reply.. I have already tried this long back.. but no use.. i cannot delete my control on pressing Del key.
Yogesh Prajapati