Drag n' drop
i have a custom designer of my control , but i would like it to display something else or atleast position the drag drop rectangle while moving the control.
any ideas?
//Roger
any ideas?
//Roger
created my own ondragover and i can now draw my own dragrect w/o any problem
//Roger
I'm having a tablelayoutpanel as the rootcomponent. Its designer is sealed and how can we attach OnDragOver event?
Thanks.
Roger - are you using VS 2003 or VS 2005? Because in 2005 we are not drawing a rectangle but actually drawing an image of the control you are dragging around.
LearnToRock - It won't help you in 2005 as the feedback is not drawn in OnDragOver.
Martin
Just curious, where the feedback bitmap is drawn when dragging control over the designersurface?
Thanks,
Alan
Hi,
When the designer detects that we are doing a drag, we kick off an internal behavior called the DropSourceBehavior, which takes care of drawing the feedback.
Martin