473,405 Members | 2,444 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,405 software developers and data experts.

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,


Dec 13 '05 #1
5 3918
"Mahesh Devjibhai Dhola [MVP]" <dh*********@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/>

Dec 13 '05 #2
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]" <hi***************@gmx.at> wrote in message
news:Op**************@TK2MSFTNGP09.phx.gbl...
"Mahesh Devjibhai Dhola [MVP]" <dh*********@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/>

Dec 14 '05 #3
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.

Dec 14 '05 #4
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]" <dh*********@hotmail.com> wrote in message
news:OE**************@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,

Dec 17 '05 #5
Can you give me the link for GOTDOTNET?

"Bob Powell [MVP]" <bob@_spamkiller_bobpowell.net> wrote in message
news:OH**************@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]" <dh*********@hotmail.com> wrote in message
news:OE**************@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,


Dec 19 '05 #6

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: James Carnley | last post by:
I am learning how to use windows forms and I have come across a small problem. Whenever I run my program it opens a console window before launching the windows form. The console doesnt go away...
8
by: Scott | last post by:
I have written windows applications using MFC for several years and have frequently used MFC techniques. Now I'm moving to C# .NET WinForm. Mostly C# books describes C# language (sometimes...
1
by: Magnus Gran-Jansen | last post by:
Hi, I am trying to make my C# application of windows forms (hosted in IE by using UserControl) to connect to a port on the machine the "applet" is downloaded from. It would be useful if I could...
1
by: Microsoft | last post by:
Hi, I am newbie for Visual studio .Net. I had .Net 2002 installed on my system. Now I have installed .Net 2003 under the pretext that Windows forms would be available for use in VC.Net. But in...
1
by: Mehr H | last post by:
I've been trying to figure out how i can embed a Windows.Forms.ProgressBar in my webform (aspx) file. I have tried putting a Windows.Forms.ProgressBar as public on a regular winform designer form...
3
by: Chris Dunaway | last post by:
A quick scan of the group did not immediately reveal an answer to my questions so here goes. First let me describe my app and then I'll ask the questions. I am writing a Windows Forms App (not...
2
by: david | last post by:
I am wondering how to embed a windows form into web form for control and interacting with server application (like java applet)? Anyone can give me some clue and guide? Thanks
14
by: Anoop | last post by:
Hi, I am new to this newsgroup and need help in the following questions. 1. I am workin' on a GUI application. Does C# provides Layout Managers the way Java does to design GUI? I know that it...
5
by: Johndoe | last post by:
Hi, Can someone give me some pointers as to how to convert a WinForms 1.1 to 2.0 to use partial classes? Maybe a good article on the Net? I already converted my application from 1.1 to 2.0, but...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.