PC Review Forums Newsgroups Microsoft DotNet Microsoft Dot NET Framework Forms How: Layout Managers in .Net [Windows Forms] like Java?

Reply

How: Layout Managers in .Net [Windows Forms] like Java?

 
Thread Tools Rate Thread
Old 13-12-2005, 04:02 PM   #1
Mahesh Devjibhai Dhola [MVP]
Guest
 
Posts: n/a
Default How: Layout Managers in .Net [Windows Forms] like Java?


Hi,
How to achieve effect of LayoutManagers like java has Grid, Flow, Border etc
layouts in .Net?
The case is: I am creating the form runtime and adding controls on run-time
so at that time its very hactic to manipulate about other control's sizes,
positions etc so there must be easy way to do such things like what Java
LayoutManagers allow without worring the actual positions in pixels. It
allows me to add, insert etc operation without knowing other control's pixel
positions. I should be allowed to insert some control after some other
control by giving index or name directly which is not possible in Forms. Any
pointers please??

Microsoft is far ahead than Java in UI area then why these basic
functionalities are not there in APIs?

Help please,




  Reply With Quote
Old 13-12-2005, 04:43 PM   #2
Herfried K. Wagner [MVP]
Guest
 
Posts: n/a
Default Re: Layout Managers in .Net [Windows Forms] like Java?

"Mahesh Devjibhai Dhola [MVP]" <dholamahesh@hotmail.com> schrieb:
> How to achieve effect of LayoutManagers like java has Grid, Flow, Border
> etc
> layouts in .Net?
> The case is: I am creating the form runtime and adding controls on
> run-time
> so at that time its very hactic to manipulate about other control's sizes,
> positions etc so there must be easy way to do such things like what Java
> LayoutManagers allow without worring the actual positions in pixels. It
> allows me to add, insert etc operation without knowing other control's
> pixel
> positions. I should be allowed to insert some control after some other
> control by giving index or name directly which is not possible in Forms.


If you are using .NET 2.0:

Check out the FlowLayoutPanel and TableLayoutPanel controls, which are
avialable on the "Containers" tab of VS 2005's toolbox.

..NET 1.0/1.1:

Simple Layout Managers
<URL:http://www.dotnet.jku.at/projects/slm/>

--
M S Herfried K. Wagner
M V P <URL:http://dotnet.mvps.org/>
V B <URL:http://classicvb.org/petition/>

  Reply With Quote
Old 14-12-2005, 05:08 PM   #3
Mahesh Devjibhai Dhola [MVP]
Guest
 
Posts: n/a
Default Re: Layout Managers in .Net [Windows Forms] like Java?

Hi,
I know that VS2k5 has such APIs but i m sorry that i forgot to mention about
the .net version that in our production environment we are using vs2k3 so it
cant help.
Also, i have MSDN link for custom layout in windows forms in .net 1.1 but i
was interested to know that is there any built in mechanizm beyond Anchor,
and Dock that we can use directly so that we can avoid Positioning etc??

Thanks for the help,

"Herfried K. Wagner [MVP]" <hirf-spam-me-here@gmx.at> wrote in message
news:Op6IORAAGHA.1288@TK2MSFTNGP09.phx.gbl...
> "Mahesh Devjibhai Dhola [MVP]" <dholamahesh@hotmail.com> schrieb:
> > How to achieve effect of LayoutManagers like java has Grid, Flow, Border
> > etc
> > layouts in .Net?
> > The case is: I am creating the form runtime and adding controls on
> > run-time
> > so at that time its very hactic to manipulate about other control's

sizes,
> > positions etc so there must be easy way to do such things like what Java
> > LayoutManagers allow without worring the actual positions in pixels. It
> > allows me to add, insert etc operation without knowing other control's
> > pixel
> > positions. I should be allowed to insert some control after some other
> > control by giving index or name directly which is not possible in Forms.

>
> If you are using .NET 2.0:
>
> Check out the FlowLayoutPanel and TableLayoutPanel controls, which are
> avialable on the "Containers" tab of VS 2005's toolbox.
>
> .NET 1.0/1.1:
>
> Simple Layout Managers
> <URL:http://www.dotnet.jku.at/projects/slm/>
>
> --
> M S Herfried K. Wagner
> M V P <URL:http://dotnet.mvps.org/>
> V B <URL:http://classicvb.org/petition/>
>



  Reply With Quote
Old 14-12-2005, 05:37 PM   #4
tdavisjr
Guest
 
Posts: n/a
Default Re: Layout Managers in .Net [Windows Forms] like Java?

I have not came across any build in functionality in the .NET framework
1.1 that compares to layout managers like in java. Essentially,
controls are placed on the for by either using absolute positioning or
just by adding the control to the forms' controls collection. Anchoring
and Docking seems to be the only way to alter the layout and behavior
of form controls.

However, maybe there is some component that you can purchase that can
give you the affect that you want.

  Reply With Quote
Old 15-12-2005, 03:03 AM   #5
Kevin Yu [MSFT]
Guest
 
Posts: n/a
Default Re: Layout Managers in .Net [Windows Forms] like Java?

Hi Mahesh,

There are FlowLayoutPanel and TableLayoutPanel in VS.NET 2005 for us to
manage the layouts in a windows form. Besides, there are no buid in
controls. I think if you have specific needs, you can try to use a
3rd-party control.

Kevin Yu
=======
"This posting is provided "AS IS" with no warranties, and confers no
rights."

  Reply With Quote
Old 17-12-2005, 02:15 PM   #6
Bob Powell [MVP]
Guest
 
Posts: n/a
Default Re: Layout Managers in .Net [Windows Forms] like Java?

GotDotNet has some good articles by Chris Anderson on creating layout
managers.

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

Ramuseco Limited .NET consulting
http://www.ramuseco.com

Find great Windows Forms articles in Windows Forms Tips and Tricks
http://www.bobpowell.net/tipstricks.htm

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

All new articles provide code in C# and VB.NET.
Subscribe to the RSS feeds provided and never miss a new article.





"Mahesh Devjibhai Dhola [MVP]" <dholamahesh@hotmail.com> wrote in message
news:OEp1a1$$FHA.3136@TK2MSFTNGP15.phx.gbl...
> Hi,
> How to achieve effect of LayoutManagers like java has Grid, Flow, Border
> etc
> layouts in .Net?
> The case is: I am creating the form runtime and adding controls on
> run-time
> so at that time its very hactic to manipulate about other control's sizes,
> positions etc so there must be easy way to do such things like what Java
> LayoutManagers allow without worring the actual positions in pixels. It
> allows me to add, insert etc operation without knowing other control's
> pixel
> positions. I should be allowed to insert some control after some other
> control by giving index or name directly which is not possible in Forms.
> Any
> pointers please??
>
> Microsoft is far ahead than Java in UI area then why these basic
> functionalities are not there in APIs?
>
> Help please,
>
>
>
>



  Reply With Quote
Old 19-12-2005, 05:35 AM   #7
Mahesh Devjibhai Dhola [MVP]
Guest
 
Posts: n/a
Default Re: Layout Managers in .Net [Windows Forms] like Java?

Can you give me the link for GOTDOTNET?

"Bob Powell [MVP]" <bob@_spamkiller_bobpowell.net> wrote in message
news:OH2VDRxAGHA.1312@TK2MSFTNGP09.phx.gbl...
> GotDotNet has some good articles by Chris Anderson on creating layout
> managers.
>
> --
> Bob Powell [MVP]
> Visual C#, System.Drawing
>
> Ramuseco Limited .NET consulting
> http://www.ramuseco.com
>
> Find great Windows Forms articles in Windows Forms Tips and Tricks
> http://www.bobpowell.net/tipstricks.htm
>
> Answer those GDI+ questions with the GDI+ FAQ
> http://www.bobpowell.net/faqmain.htm
>
> All new articles provide code in C# and VB.NET.
> Subscribe to the RSS feeds provided and never miss a new article.
>
>
>
>
>
> "Mahesh Devjibhai Dhola [MVP]" <dholamahesh@hotmail.com> wrote in message
> news:OEp1a1$$FHA.3136@TK2MSFTNGP15.phx.gbl...
> > Hi,
> > How to achieve effect of LayoutManagers like java has Grid, Flow, Border
> > etc
> > layouts in .Net?
> > The case is: I am creating the form runtime and adding controls on
> > run-time
> > so at that time its very hactic to manipulate about other control's

sizes,
> > positions etc so there must be easy way to do such things like what Java
> > LayoutManagers allow without worring the actual positions in pixels. It
> > allows me to add, insert etc operation without knowing other control's
> > pixel
> > positions. I should be allowed to insert some control after some other
> > control by giving index or name directly which is not possible in Forms.
> > Any
> > pointers please??
> >
> > Microsoft is far ahead than Java in UI area then why these basic
> > functionalities are not there in APIs?
> >
> > Help please,
> >
> >
> >
> >

>
>



  Reply With Quote
Old 20-12-2005, 08:51 AM   #8
Kevin Yu [MSFT]
Guest
 
Posts: n/a
Default Re: Layout Managers in .Net [Windows Forms] like Java?

Hi,

It's in http://www.gotdotnet.com

Kevin Yu
=======
"This posting is provided "AS IS" with no warranties, and confers no
rights."

  Reply With Quote
Reply



Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off