Click here to Skip to main content
16,004,452 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
hi , ive got a form with some labels and group boxes ect ect, but when i resize the main form while app is running only the border expands and not the whole form ,
thanks in advance
used this code:
C#
this.TopMost = true;
        this.FormBorderStyle = FormBorderStyle.None;
        this.WindowState = FormWindowState.Maximized;

but it strecthes the form and not its content within
Posted
Updated 3-Aug-15 2:57am
v2
Comments
[no name] 3-Aug-15 8:57am    
You use the Dock and Anchor properties for your controls
jamesmc1535 3-Aug-15 8:59am    
thanks
Ralf Meier 3-Aug-15 8:59am    
... or you have to calculate the elements complete new ... (if the Suggestion of Wes is not enough)

1 solution

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