Drag & Drop
-
Hi, I have a panel control in my application. The Paint event of panel control is overrided to show some solid grid line and measures (like scale) on my panel control. I have a collection of label controls (not less than 250 - 300 in all time) in that panel , which we can drag or drop anywhere inside the panel region. I am overriding paint method of my custom label or labels which is there inside the panel. My problem start here, 1. the moment i start dragging the label control in side the panel , the label show transparent shadow of that label control which i am dragging . 2. If i hold my mouse for a second , that is in between drag and drop. The control got heavy flickering. I tried Double buffering and related tricks using SetStyle() method. But still there is no change in status. 3. Last and most important issue that i am facing is, location of mouse cursor. i.e., I need to place controls (custom labels) in some exact locations (measured location). But i can't able to control mouse cursor. If i start dragging , then my mouse will be near to 10 cm far from my control which i am dragging. Really got stuck . Any Idea ?.:( Sreejith Nair [ My Articles ]