Track/resize controls @ runtime

maxx

New member
Joined
Jun 4, 2003
Messages
2
Hi all!

I need the functionality like MFCs CRectTracker class.
My requirement is resizing and repositioning controls at runtime.

Is there such component in the Windows Forms Framework?
I use C#

Thx in advance!

maxx
 
I dont know anything about CRectTracker. All the controls in .NET support the Anchor property which controls repositioning and resizing automatically. Have you looked at that and it doesnt work for you?

-Nerseus
 
The anchor property is only useful when you resize the entire frame. Id like to resize/reposition, using drag/drop, the controls separately. The CRectTracker class can de-/select single controls so they become a rubberband to catch them with the mousepointer.

So long
maxx
 
Youll have to implement this yourself, using code. You might find the methods of the ControlPaint class useful for drawing the selection rectangles and grab handles, but the moving and resizing youll have to write yourself.
 
Back
Top