468,119 Members | 1,683 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 468,119 developers. It's quick & easy.

Urgent | Creating dynamic UI using Layout Panels

Hi,
Requirement: Create Edit Forms dynamically i.e. at runtime in C#.net. The
child contol(s) information e.g. no.of control, their type(lable/textbox),
enabled/disabled etc. is coming from the DB.
Options: The available options are:
1. Use LayoutPanels - FlowLayoutPanel/TableLayoutPanel to layout the
controls on the Form.
2. Use simple panels and wirte complex logic with a lot of harded values
for location/size etc. of the controls
Issue: I prefer Option 1 and use LayoutPanels. TableLayoutPanle is powerful
but has limitation that it should not be nested and inherited i.e. don't
have it in the base class and then add controls in the child class. There
are performance issues when form is resized. FlowLayout is does not provide
good features.
Question: can I use FlowLayoutPanel and TableLayoutPanel togeather i.e. use
one inside the other e.g. TableLayoutPanel as a parent and use multiple
FlowLayoutPanels inside it?

Anyother suggestions would be highly appreciated!!
Please respond a.s.a.p.

Thanks!!
-Anoop

Jul 26 '06 #1
1 6233
I have never done such a thing, but they are both containers therefore it
would seem logical. Why don't you give it a go?

James Jenkins
Bandwidth Vista -Freeware
http://www.tamarsolutions.co.uk

"Anoop" <an********@cinergy.comwrote in message
news:uv**************@TK2MSFTNGP03.phx.gbl...
Hi,
Requirement: Create Edit Forms dynamically i.e. at runtime in C#.net. The
child contol(s) information e.g. no.of control, their type(lable/textbox),
enabled/disabled etc. is coming from the DB.
Options: The available options are:
1. Use LayoutPanels - FlowLayoutPanel/TableLayoutPanel to layout the
controls on the Form.
2. Use simple panels and wirte complex logic with a lot of harded
values
for location/size etc. of the controls
Issue: I prefer Option 1 and use LayoutPanels. TableLayoutPanle is
powerful
but has limitation that it should not be nested and inherited i.e. don't
have it in the base class and then add controls in the child class. There
are performance issues when form is resized. FlowLayout is does not
provide
good features.
Question: can I use FlowLayoutPanel and TableLayoutPanel togeather i.e.
use
one inside the other e.g. TableLayoutPanel as a parent and use multiple
FlowLayoutPanels inside it?

Anyother suggestions would be highly appreciated!!
Please respond a.s.a.p.

Thanks!!
-Anoop

Jul 27 '06 #2

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

4 posts views Thread by Kerry Sanders | last post: by
4 posts views Thread by Ron Vecchi | last post: by
1 post views Thread by pfnus | last post: by
1 post views Thread by Hasani \(remove nospam\) | last post: by
2 posts views Thread by Steve Bottoms | last post: by
2 posts views Thread by Zach | last post: by
1 post views Thread by lxyone | last post: by
13 posts views Thread by didacticone | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.