Link to home
Start Free TrialLog in
Avatar of PLavelle
PLavelle

asked on

Selection box around control

Hello,

I am trying to build a designer where you can add controls, move them around, resize them, etc. I am trying to emulate the one that appears on a multiline textbox on a .NET form. Such as this:

http://www.petelavelle.com/SelectionBox.jpg

Is anything build in to handle this, or do I need to draw this myself?
Avatar of sirbounty
sirbounty
Flag of United States of America image

Like the panel control?
Or am I not following you?
Avatar of PLavelle
PLavelle

ASKER

I am trying to do it at runtime, so I want that border to show up around the selected controls on my designer.
im also not sure i follow your question. what i understand is that you are trying to create a user control that can move, resize, etc, right?
if so, i can provide this link:
http://www.codeproject.com/vb/net/RuntimeMovableControls.asp

teaches how to build a movable user control. you would need to add the resizing part but its a good start.
Thanks newyuppie, but I already have them moving. I need to resize them at runtime.
use a panel and panel1.borderstyle=fixedsingle onmousehover
That won't bring up those 8 little white boxes to resize the control though.
ASKER CERTIFIED SOLUTION
Avatar of Kinger247
Kinger247

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Hi PLavelle,

Have any of these solutions worked for you ?