Can a user move a usercontrol?

If I add a usercontrol to a word document, is there a way that the user can move the control by dragging and dropping to the desired new location? Thanks.
[155 byte] By [RomanBenko] at [2008-2-17]
# 1

If your controls are inline (they move with the text) then they can be moved around just by selecting them as if they were text. So it is just a matter of selecting (left click, hold button and move to the other side of the control until you see the selection) and dragging them as any other text selection (left click, hold on top of selection and drag the selection around).

If controls are not inline (floating), then user needs to switch to design mode and then drag the control around. Be aware that by switching to design mode, users are also able to delete the control (something that is not possible for this particular kind of control in non-design mode). An option here could be to implement your own logic so when user tries to drag your floating control you add logic that repositions the control (Important: remember that you do not want to reposition the control you added but its container).

DanielMolina-MSFT at 2007-10-2 > top of Msdn Tech,Visual Studio Orcas,Visual Studio Tools for Office Orcas...

Visual Studio Orcas

Site Classified