I need to know the control on which the mouse has been clicked in a container.
If I use the mouseDown event of the control this event gets fired and by using
c = this.GetChildAtPoint(panel1.PointToClient(MousePosition)) I get the control details.But when I try put try this from
Form1_MouseDown or
Panel1_MouseDown event I am not able to get the control.
I need this because there are a number of controls and I cannot code for each controls mouseDown event.
I am basically trying to drag drop the labels around a container and swap their positions.
How can I get to know which child control has been clicked & similarly the control with wich it wil be swaped?
Please let me know the events to use and the code if I am wrong above.
Hope this helps !!
Sudeep
My Blog