How to handle screen resolution problem while designing windows forms using C#?

  • Thread starter Thread starter Visu
  • Start date Start date
V

Visu

Hi All,
I am new to this group, and I would like to know how we can design a
windows application which would automatically change the form size,
controls size, position etc., as and when the screen resolution is
changed. Reason being, I have designed an windows application using C#

on 1024x728 resolution, and when I installed on my testing machine
which is 1280x1024, the screen has become small, and my testing team
has placed this as an issue. I had tried in various ways, but not able

to get a proper solution. So, I would like to have some one give me a
best solution which can solve this problem.
 
On your Windows Forms you could set WindowState to Maximized and use Anchor
and Dock properties of controls of the forms to scale with the form.
 
Visu said:
Hi All,
I am new to this group, and I would like to know how we can design a
windows application which would automatically change the form size,
controls size, position etc., as and when the screen resolution is
changed. Reason being, I have designed an windows application using C#

on 1024x728 resolution, and when I installed on my testing machine
which is 1280x1024, the screen has become small, and my testing team
has placed this as an issue. I had tried in various ways, but not able

to get a proper solution. So, I would like to have some one give me a
best solution which can solve this problem.

Be very careful where you are going with this - my partner has been having a
lot of trouble seeing some text in an app she uses. In the end I advised her
to drop the screen size to 800x600 which did the trick. Your solution would
prevent that.

I think you should allow user configurable fonts and use auto sizing
controls to fit them.

Personally I know lots of people (not including me) who like having lots and
lots of tiny text on their screens so just making it bigger on a 1280x1024
wouldn't please everyone whatever testing say.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top