Click here to Skip to main content
15,886,919 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
hey frens,
i want ask a question and my question is like this:
i have a form which has to be loaded inside the panel. the panel has fix size but the form is not covering all the size of panel. how can i load the form to the full size of panel please help me
with regards bishnu
Posted

this.Width and this.Height inside the form class let you resize it.
 
Share this answer
 
Set the Dock property:

C#
frmInputBox fib = new frmInputBox();
fib.TopLevel = false;
fib.Visible = true;
panContainer.Controls.Add(fib);
fib.Dock = DockStyle.Fill;
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900