Microsoft
Software
Hardware
Network
Question : Adding controls to Panel
Hello,
I want to know if there is any easy way to add controls to the panel without drag&drop
them.
I have almost finished application with many controls, now I got a new requirment devide controls to couple of groups (user should not see the devision) and move some controls together (according to some statement).
I decided to "group" my controls by adding them to panels. But my GUI is almost ready and it's a hard work to drag and drop them to the panel.
Another question is can some controls be related to a panel without physically being placed on it.
Thanks :)
Answer : Adding controls to Panel
You can create controls at run time:
Simple example:
Label label = new Label();
label.Text = "Hello World";
this.panel1.Controls.Add(l
abel);
Random Solutions
How to send soadheader
STOP: 0x0000007E (0xC0000420, xxxxxx) acpi.sys - address 83AB9717
How to create a Installation file for a VBA project
SQL Syntax
sql server 2005 datetime min
How Can I Trigger a Select Max Value Statement from an Access Form
I am used to Eclipse and want F3 to 'go to definition' in the VB.NET 2005 studio
Printer goes offline during print job
What is the equivalent to SQL Servers @@ROWCOUNT?
Cannot add event reminder in Outlook 2007 from linked Sharepoint 2003 calendar