Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Is there is any standard screen resolution to develop winform application in c#

Tags:

c#

.net

winforms

I have developed a winform application in 1280 X 1024 pixels.....when using the same screen resolution it shown exactly...But i change my screen resolution to 800 X 600 pixels it shows screen with close button out of screen. How to fix this...is there is any restriction to build an application using a particular screen resolution basically..

Thanks in Advance....

like image 628
Cute Avatar asked Mar 23 '09 12:03

Cute


People also ask

How do I resize a Visual Basic form to fit the screen?

Select the form, then find the Properties pane in Visual Studio. Scroll down to size and expand it. You can set the Width and Height manually.

How do I fit windows form to any screen resolution in VB net?

simply set Autoscroll = true for ur windows form..


2 Answers

1 There is no default resolution. You can observe what resolutions have your clients and take average one.

This is tip for you if you develop app for a company. Just go there and take info about it. And if you have need to design app only for one resolution - make sure that company will be ok to have all computers set to this resolution. it's in 99% not able to do, but sometimes it can be done, when your app is so specific and rare and computers are bought only for this one and only app, like netbooks.

2 How to handle different resolutions? Use Dock and Anchor properties available mostly in every these days GUI application development tools.

When you will use this, controls will naturally scale to size of a screen and your controls will no longer go behind corners of your app.

3 There is no restriction to build app for a resolution you choose.

But nowadays app I think can assume that res is min. 1024x768. And when it overlaps like you describe on 800x600 just don't bother yourself to implement fancy logic to handle this one. User will catch fast that he needs to change res to higher one.

like image 91
Tom Smykowski Avatar answered Oct 02 '22 20:10

Tom Smykowski


set the form to fullscreen and the form will always be the correct size.

this.WindowState = FormWindowState.Maximized;

(is it me or is it obvious that a form of 1280x1024 doesn't fit in 800x600 screen?)

like image 45
RvdK Avatar answered Oct 02 '22 21:10

RvdK