Drag n' drop

is there any way to change the drag/drop rectangle of a control when dragging it?
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

[265 byte] By [codefund.com] at [2007-12-16]
# 1
This is not supported.
codefund.com at 2007-9-8 > top of Msdn Tech,Windows Forms,Windows Forms Designer...
# 2
i did it yesterday , works perfect.

created my own ondragover and i can now draw my own dragrect w/o any problem

//Roger

codefund.com at 2007-9-8 > top of Msdn Tech,Windows Forms,Windows Forms Designer...
# 3

I'm having a tablelayoutpanel as the rootcomponent. Its designer is sealed and how can we attach OnDragOver event?

Thanks.

LearnToRock at 2007-9-8 > top of Msdn Tech,Windows Forms,Windows Forms Designer...
# 4

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

MartinThorsen-MSFT at 2007-9-8 > top of Msdn Tech,Windows Forms,Windows Forms Designer...
# 5

Just curious, where the feedback bitmap is drawn when dragging control over the designersurface?

Thanks,
Alan

LearnToRock at 2007-9-8 > top of Msdn Tech,Windows Forms,Windows Forms Designer...
# 6

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

MartinThorsen-MSFT at 2007-9-8 > top of Msdn Tech,Windows Forms,Windows Forms Designer...