In my program I have a form and several controls on it.
I need to give to user a possibility to move and resize them at runtime.
The only way to do so I could find till now is to handle mouse events and
change size and position accordingly.
From other hand this functionality is already implemented in design time.
Is there any simpler way to implement it in run time?

Thank you in advance.

Re: User moves and resizes controls with a mouse at runtime by hirf-spam-me-here

hirf-spam-me-here
Sun Oct 12 06:05:09 CDT 2003

* "Max" <Please@reply.to.news.group> scripsit:
> In my program I have a form and several controls on it.
> I need to give to user a possibility to move and resize them at runtime.
> The only way to do so I could find till now is to handle mouse events and
> change size and position accordingly.
> From other hand this functionality is already implemented in design time.
> Is there any simpler way to implement it in run time?

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

--
Herfried K. Wagner
MVP · VB Classic, VB.NET
<http://www.mvps.org/dotnet>

Re: User moves and resizes controls with a mouse at runtime by Mr

Mr
Sun Oct 12 06:42:45 CDT 2003

Use control anchoring on to the container.


Anchors.


"Max" <Please@reply.to.news.group> wrote in message
news:#rIm33KkDHA.1960@TK2MSFTNGP12.phx.gbl...
> In my program I have a form and several controls on it.
> I need to give to user a possibility to move and resize them at runtime.
> The only way to do so I could find till now is to handle mouse events and
> change size and position accordingly.
> From other hand this functionality is already implemented in design time.
> Is there any simpler way to implement it in run time?
>
> Thank you in advance.
>
>



Re: User moves and resizes controls with a mouse at runtime by Max

Max
Sun Oct 12 08:45:51 CDT 2003

Unfortunately anchoring has nothing to do with move and resize.
I want the user to be able to move and resize CONTROL ON THE FORM and not
the control to be move and resized according the size of the form.

"Mr.Tickle" <MrTickle@mrmen.com> wrote in message
news:u607XVLkDHA.2000@TK2MSFTNGP12.phx.gbl...
> Use control anchoring on to the container.
>
>
> Anchors.
>
>
> "Max" <Please@reply.to.news.group> wrote in message
> news:#rIm33KkDHA.1960@TK2MSFTNGP12.phx.gbl...
> > In my program I have a form and several controls on it.
> > I need to give to user a possibility to move and resize them at
runtime.
> > The only way to do so I could find till now is to handle mouse events
and
> > change size and position accordingly.
> > From other hand this functionality is already implemented in design
time.
> > Is there any simpler way to implement it in run time?
> >
> > Thank you in advance.
> >
> >
>
>



Re: User moves and resizes controls with a mouse at runtime by Max

Max
Sun Oct 12 08:55:27 CDT 2003

That's a great link and a great project, but I do not think it is a "simple"
way.
Downloading this project, understanding how did they implement that, ...
will take time.
Besides, I do not need the fully functional IDE.
I just want the controls to be moved and resized.
(That's a kind of diagram editor. Each diagram object is a .NET control.)

Thank you for interesting link any way.



"Herfried K. Wagner [MVP]" <hirf-spam-me-here@gmx.at> wrote in message
news:usyl3CLkDHA.2444@TK2MSFTNGP09.phx.gbl...
> * "Max" <Please@reply.to.news.group> scripsit:
> > In my program I have a form and several controls on it.
> > I need to give to user a possibility to move and resize them at
runtime.
> > The only way to do so I could find till now is to handle mouse events
and
> > change size and position accordingly.
> > From other hand this functionality is already implemented in design
time.
> > Is there any simpler way to implement it in run time?
>
> <http://www.icsharpcode.net/OpenSource/SD/>
>
> --
> Herfried K. Wagner
> MVP · VB Classic, VB.NET
> <http://www.mvps.org/dotnet>



Re: User moves and resizes controls with a mouse at runtime by Bob

Bob
Sun Oct 12 10:36:53 CDT 2003

You may be interested in this solution...

http://www.bobpowell.net/recttracker.htm

--
Bob Powell [MVP]
C#, System.Drawing

September's edition of Well Formed is now available.
http://www.bobpowell.net/currentissue.htm

Answer those GDI+ questions with the GDI+ FAQ
http://www.bobpowell.net/gdiplus_faq.htm

Blog http://bobpowelldotnet.blogspot.com

"Max" <Please@reply.to.news.group> wrote in message
news:#rIm33KkDHA.1960@TK2MSFTNGP12.phx.gbl...
> In my program I have a form and several controls on it.
> I need to give to user a possibility to move and resize them at runtime.
> The only way to do so I could find till now is to handle mouse events and
> change size and position accordingly.
> From other hand this functionality is already implemented in design time.
> Is there any simpler way to implement it in run time?
>
> Thank you in advance.
>
>



Re: User moves and resizes controls with a mouse at runtime by rmorin

rmorin
Sun Oct 12 11:07:19 CDT 2003

If you used Web Forms instead of Windows Forms, then you could just
set designMode for the form to true.
http://msdn.microsoft.com/workshop/author/dhtml/reference/properties/designmode.asp
A thought.

Randy
http://www.kbcafe.com

"Max" <Please@reply.to.news.group> wrote in message news:<#rIm33KkDHA.1960@TK2MSFTNGP12.phx.gbl>...
> In my program I have a form and several controls on it.
> I need to give to user a possibility to move and resize them at runtime.
> The only way to do so I could find till now is to handle mouse events and
> change size and position accordingly.
> From other hand this functionality is already implemented in design time.
> Is there any simpler way to implement it in run time?
>
> Thank you in advance.

Re: User moves and resizes controls with a mouse at runtime by Joshua

Joshua
Sun Oct 12 11:54:08 CDT 2003

You could add a PropertyGrid control (you need to add it to your toolbox, it
isnt there by default) to your form. Then use some runtime code to allow
the user to choose which control to select in the PropertyGrid. Once the
control is selected in the PropertyGrid, the user will have access to all of
its properties, including size and location.


"Max" <Please@reply.to.news.group> wrote in message
news:%23rIm33KkDHA.1960@TK2MSFTNGP12.phx.gbl...
> In my program I have a form and several controls on it.
> I need to give to user a possibility to move and resize them at runtime.
> The only way to do so I could find till now is to handle mouse events and
> change size and position accordingly.
> From other hand this functionality is already implemented in design time.
> Is there any simpler way to implement it in run time?
>
> Thank you in advance.
>
>



Re: User moves and resizes controls with a mouse at runtime by Joe

Joe
Sun Oct 12 19:24:08 CDT 2003

Hosting the Windows Forms designers:
http://www.divil.co.uk/net/articles/designers/hosting.asp


"Max" <Please@reply.to.news.group> wrote in message
news:%23rIm33KkDHA.1960@TK2MSFTNGP12.phx.gbl...
> In my program I have a form and several controls on it.
> I need to give to user a possibility to move and resize them at runtime.
> The only way to do so I could find till now is to handle mouse events and
> change size and position accordingly.
> From other hand this functionality is already implemented in design time.
> Is there any simpler way to implement it in run time?
>
> Thank you in advance.



Re: User moves and resizes controls with a mouse at runtime by Max

Max
Mon Oct 13 01:38:28 CDT 2003

Looks like it is exactly what I need.
Moreover I thought of writing exactly such a control before I knew that you
already have written one.
But, most likely I won't buy it.

Thank you for answering.


"Bob Powell [MVP]" <bob@_spamkiller_bobpowell.net> wrote in message
news:uidbIaNkDHA.2616@TK2MSFTNGP11.phx.gbl...
> You may be interested in this solution...
>
> http://www.bobpowell.net/recttracker.htm
>
> --
> Bob Powell [MVP]
> C#, System.Drawing
>
> September's edition of Well Formed is now available.
> http://www.bobpowell.net/currentissue.htm
>
> Answer those GDI+ questions with the GDI+ FAQ
> http://www.bobpowell.net/gdiplus_faq.htm
>
> Blog http://bobpowelldotnet.blogspot.com
>
> "Max" <Please@reply.to.news.group> wrote in message
> news:#rIm33KkDHA.1960@TK2MSFTNGP12.phx.gbl...
> > In my program I have a form and several controls on it.
> > I need to give to user a possibility to move and resize them at
runtime.
> > The only way to do so I could find till now is to handle mouse events
and
> > change size and position accordingly.
> > From other hand this functionality is already implemented in design
time.
> > Is there any simpler way to implement it in run time?
> >
> > Thank you in advance.
> >
> >
>
>



Re: User moves and resizes controls with a mouse at runtime by Max

Max
Mon Oct 13 01:39:23 CDT 2003

No I am implementing a Windows application and I use Windows Forms.

"Randy Charles Morin" <rmorin@kbcafe.com> wrote in message
news:a4d02d64.0310120807.4552f219@posting.google.com...
> If you used Web Forms instead of Windows Forms, then you could just
> set designMode for the form to true.
>
http://msdn.microsoft.com/workshop/author/dhtml/reference/properties/designmode.asp
> A thought.
>
> Randy
> http://www.kbcafe.com
>
> "Max" <Please@reply.to.news.group> wrote in message
news:<#rIm33KkDHA.1960@TK2MSFTNGP12.phx.gbl>...
> > In my program I have a form and several controls on it.
> > I need to give to user a possibility to move and resize them at
runtime.
> > The only way to do so I could find till now is to handle mouse events
and
> > change size and position accordingly.
> > From other hand this functionality is already implemented in design
time.
> > Is there any simpler way to implement it in run time?
> >
> > Thank you in advance.



Re: User moves and resizes controls with a mouse at runtime by Max

Max
Mon Oct 13 01:42:03 CDT 2003

My problem is how to allow user to do it with a MOUSE.

Thank you for answering.


"Joshua Flanagan" <josh@msnews.com> wrote in message
news:%23vTnvCOkDHA.708@TK2MSFTNGP10.phx.gbl...
> You could add a PropertyGrid control (you need to add it to your toolbox,
it
> isnt there by default) to your form. Then use some runtime code to allow
> the user to choose