473,779 Members | 2,047 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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/TableLayoutPane l 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. TableLayoutPanl e 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 TableLayoutPane l togeather i.e. use
one inside the other e.g. TableLayoutPane l as a parent and use multiple
FlowLayoutPanel s inside it?

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

Thanks!!
-Anoop

Jul 26 '06 #1
1 6442
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********@cin ergy.comwrote in message
news:uv******** ******@TK2MSFTN GP03.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/TableLayoutPane l 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. TableLayoutPanl e 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 TableLayoutPane l togeather i.e.
use
one inside the other e.g. TableLayoutPane l as a parent and use multiple
FlowLayoutPanel s inside it?

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

Thanks!!
-Anoop

Jul 27 '06 #2

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

Similar topics

4
6393
by: Kerry Sanders | last post by:
I was playing around with a new Windows form yesterday. I wanted to drop two panels on the form. The first would be set Dock=Top. The second would be set Dock=Fill. So, I dropped the first panel and set its Dock property to Top. I then dropped the second panel on the form and set its Dock property to Fill. Holy disappearing panels, Batman. The second panel filled the entire form hiding the first panel. So, when I dropped my grid...
4
2759
by: Ron Vecchi | last post by:
Could someone point me in the right direction for creating a control similar to the VS solution explorer where it will auto hide and open when needed. Thanks -- Ron Vecchi
1
7680
by: pfnus | last post by:
Hi, I want to display different forms when the buttons are clicked and all the forms are having different controls on it. So instead of adding new windows forms to the project, i enlarged the form and used many panels on the same form, which i think is easier to manage. However, i am having problems. Should i need to put the panels on the same location on the design layout? i put the panels at different places and it doesn't get...
1
1778
by: Hasani \(remove nospam\) | last post by:
The way the system works is, you create a user control (ascx) that will be a template and must implement the interface IPageTemplate. You then create one or more user controls (ascx) that implement the IPageContent interface. A page (aspx) must then be created that loads (using Page.LoadControl) the page template, and the page content. The page content adds itself to the page template. The page template is then added to the aspx's control...
2
2723
by: Steve Bottoms | last post by:
Hi, all! Using VB as code-behind in asp.net page... I have a TABLE control which I'm building dynamically. After the table is built, I'm trying to retrieve the HEIGHT property of that table (table.height.value) to be able to dynamically position the next elements on the form. However, this control property is coming back as -0- every time. I also try to get the table height with Javascript after-the-fact (table.style.height), but that...
2
4571
by: Patrick | last post by:
I want to define a set of web-form templates in XML and render the equivalent web-form with ASP.NET, then process any input server controls on the form. Reading the XML file from Page_load is easy, but 1) How do I set about dynamically creating user controls (like TextBox, TextArea) --- simply Declare and initialised (new) the user controls?? How do I "place" it graphically on the form. Ideally, I want them to lay out in a table, one...
2
3220
by: Zach | last post by:
I have a situation similar to what you see in Visual Studio Options menu. A Tree View on the left, and depending on what type of node you click it dynamically loads a panel into the right hand side of the form. It would be really nice if I could design all possible right hand side panels in the forms designer, then have some way to tell the framework "load the form represented by the class SuchAndSuchForm". What I have to resort to...
2
1492
JimWu
by: JimWu | last post by:
Do anyone know how to layout in Panel control. The code as follows labels.Text = "Album Name :"; labels.Text = "Title :"; labels.Text = "Tag :"; labels.Text = "Description :";
1
1904
by: lxyone | last post by:
Using a flat file containing table names, fields, values whats the best way of creating forms / html pages? I want control over the html pages ie 1. layout 2. what data to show 3. what controls to show - text boxes, input boxes, buttons, hyperlinks ie the usual. The data is not obtained directly from a database.
0
9471
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10302
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
1
10071
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
8958
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, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
7478
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5501
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4036
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
3631
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2867
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.