Runtime control resizing

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

I have an application where I need to allow runtime resizing and moving of controls. Does the .Net framework provide any facility for performing this feature or do I need to develop my own? I can use the drag/drop functionality to move the control. To perform the resizing would be more complex - possibly use GDI+ to draw a rectangle around the control, and then provide handles to change the size of the rectangle. Are there any code samples or technical guidelines to performing this feature in C#. I have seen some code samples for C++, but I would prefer to use C#.
 
* =?Utf-8?B?amJtZWVo?= said:
I have an application where I need to allow runtime resizing and
moving of controls. Does the .Net framework provide any facility for
performing this feature or do I need to develop my own? I can use the
drag/drop functionality to move the control. To perform the resizing
would be more complex - possibly use GDI+ to draw a rectangle around the
control, and then provide handles to change the size of the
rectangle. Are there any code samples or technical guidelines to
performing this feature in C#. I have seen some code samples for C++,
but I would prefer to use C#.

Have a look at the implementation of SharpDevelop's form editor:

<http://www.icsharpcode.net/OpenSource/SD/>
 
Back
Top