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 can I change the identity property of a column without setting the wrong seed?
How to refresh the view in an SDI application
recovering *Contacts* from an old .OST file???
Re-write the script for Copy/Paste
Internet Explorer takes a long time to load, fresh install
How to prevent duplicate records on the form UI?
create a access database with information from a spreadsheet and print to index cards
OPENFILENAME truncating the file name
MS Access 2007
How to add totals to a row in a sql 2008 pivot stored procedure