Click here to Skip to main content
15,916,693 members
Please Sign up or sign in to vote.
1.00/5 (4 votes)
See more:
please help me i need urgently to set my forms for my clients computers

thanks
Posted
Comments
Sinisa Hajnal 21-Sep-15 10:24am    
Short answer is you can't at least not with 100% accuracy. You can design your forms on small default (i.e. 800x600) and then use anchoring to make your controls follow the form size...but real responsiveness as you can see in the web with more controls being visible on the bigger screen ... very hard.

Check anchor property in the form designer.

Don't even try.
Unless your form was designed from the ground up to be re-sizable (in the same way that Visual Studio is with a central "work area" that changes size, and with tool boxes around the edges that don't) there is no good way to make the process automatic.

The problem is that while it's easy to resize controls automatically using the Dock and Anchor properties, they don't change the size of text automatically as well - so you end up with buttons too small for the text, or tiny text in the middle of a huge button.

WPF is a lot better in this regard, but even then it's a bit of a pain (and means learning a whole new interface framework)
 
Share this answer
 
Have you tried google? I just copied and pasted your question title in google and found quite a bit.

But never the less if this is for a windows form application then you can use this:
C#
this.Size = Screen.PrimaryScreen.WorkingArea.Size;
this.WindowState = FormWindowState.Maximized;
 
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