Click here to Skip to main content
15,916,951 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
I developed one application in screen resolution of (1366 x 768) . but when i install this application in lower resolution computer say (1280 x 1024) , and starts my application buttons and textboxes gets cropped from end and in another form datagridview shows columns repeatedly whereas they are bound only once and appearing once in my pc , why it happend ? please suggest me ways to get rid of this.
Posted

Basically? You can't, without a substantial redesign of your user interface.
WinForms is not good at control scaling, and it rarely looks good unless you design it form the beginning for that with a central "work area" surrounded by dockable tool areas - the way that VS is designed.

A single form stuffed with controls can't be easily scaled automatically, as the font size used for the controls doesn't change when the control size does, leaving you with either a huge button with tiny text in the middle, or a tiny button with most of the text hidden.

You may be able to get round it by redesigning your user interface to use multiple forms or tabs to reduce the number of controls visible at any one time and fit everything in that way in a smaller space, and that can improve the user experience as well - a display full of controls is normally confusing and awkward to use.
But automatic rescaling just never works nicely.
 
Share this answer
 
Basically windows forms do not adjust their look and feel depend upon resolution, you need to take use of TableLayout panel and anchor tags to get it done.
DOCK and ANCHOR will help you to maintain your control ratio with screen resolution but you need to work on each control
see following link, it may help you more
Make resolution independent windows app in .net[^]
 
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