Urgent | Creating dynamic UI using Layout Panels

A

Anoop

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top