Jump to content
Xtreme .Net Talk

Recommended Posts

Posted

Hi all!

 

I need the functionality like MFC's 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

  • *Experts*
Posted

I don't 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 doesn't work for you?

 

-Nerseus

"I want to stand as close to the edge as I can without going over. Out on the edge you see all the kinds of things you can't see from the center." - Kurt Vonnegut
Posted

The anchor property is only useful when you resize the entire frame. I'd 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

  • *Gurus*
Posted
You'll 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 you'll have to write yourself.

MVP, Visual Developer - .NET

 

Now you see why evil will always triumph - because good is dumb.

 

My free .NET Windows Forms Controls and Articles

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...