0

Hey!

I'm currently doing my thesis work in C# where I'm writing a program for a certain company. I have a little problem with resizeing my program for different screen resolutions. I don't relly know how to do this. My current resolution is 1280x1024 and that's what I've designed the program for but the program is going to be run in many different countries in varous screen resolutions. How would I do this?

Thanks!

//Andreas

3
Contributors
2
Replies
3
Views
9 Years
Discussion Span
Last Post by Narue
0

Here you are

this.Height = System.Windows.Forms.Screen.AllScreens[0].WorkingArea.Height;
            this.Width = System.Windows.Forms.Screen.AllScreens[0].WorkingArea.Width;
0

>Here you are
Somehow I don't think that's the problem, Ramy.

>I have a little problem with resizeing my program for different screen resolutions.
Do you mean that when the resolution is changed, your UI looks like crap? If so, the easiest solution is to use anchoring and resizing of your controls to keep things relatively neat and enforce a minimum resolution (640x480, for instance). That way you have a lower bound to work and the UI looks decent as the resolution grows, though it may not be perfect.

Votes + Comments
Somehow I think that it is.
This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.