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?
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?
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.
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.
ASKER
Thanks newyuppie, but I already have them moving. I need to resize them at runtime.
use a panel and panel1.borderstyle=fixedsi ngle onmousehover
ASKER
That won't bring up those 8 little white boxes to resize the control though.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Hi PLavelle,
Have any of these solutions worked for you ?
Have any of these solutions worked for you ?
Or am I not following you?