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
binding items collection of several comboBoxes to the Values in a specified column of the table
SBS 2008 Remote Web Workspace getting 10009 and continously prompting users for password, not letting them into there PCs
Excel 2007 charts do not update!
How to determine Windows Version installed on a non-booting hard drive
Outlook 2003 problem setting up reccurring appointment
How to create a nested SUMIF in Excel / Google Docs
How do I pass a cell reference through to my function code instead of the cell contents
Make table Union All query
event viewer log error 17055 mssqlserver backup logs
Problem Upgrading a Child Domain to Windows 2008 R2