Click here to Skip to main content
15,894,297 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi all,
My all project, always working on a fixed resolution. Example 1920x1080.. But this time, I don't want this problem. For this, I try some solution but all of them not working.

What can I do? How can fixed this problem?
Posted

1 solution

If you mean you want controls to resize and reposition automatically when the resolution changes, then there is no good solution in Winforms, except to design the application to work in a similar way to Visual Studio: fixed sized grouped controls around a variable sized central text area.
You can get controls to move and resize themselves in Winforms by using the Dock and Anchor properties, but this does not affect the size of fonts used on buttons for example - the button will grow but the text wont, or the button will shrink and the text disappears.

If you need a truly flexible solution, then you need to look at changing to WPF - it can do it very nicely.
 
Share this answer
 
Comments
Umut Comlekcioglu 15-Jun-13 13:06pm    
I want, my project design fixed all resolution. For example, I am preparing my project resolution of 1920x1080. But it doesn't work, different resolutions. It's working, but design is break down. Dock and Anchor properties not a solution for this problem.
As you said yourself,I have similar control ViewBox in WPF...

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