c# - Different Application Size On Different Screens -


this question has answer here:

first time i'm developing windows form application c# . i'm using visual studio 2012.

my form's size = 1096x508. set minimum size , maximum size properties 1096x508 .

this screenshot of app , enter image description here

but when execute app on computer, result :

enter image description here

as see, red line (at bottom of app) invisible. because applciation's height 508 px (as expected) on pc 416px on other computer. because of , red line staying out of form. couldn't see it.

in shortly, form's size 1096x508px it's 823x416px on computer. can tell me why there difference? , how can fix this? there resolution difference between screens.

the main issue, have discovered, computers different dpi setting cause controls scale.

what hans suggesting in linked answer need re-design form when gets re-size messages handle them accordingly.

the main way handled setting anchor property or dock property of control. default control anchor top left corner of it's parent container. when told scale scales down , right. changing anchor point bottom make bottom control move instead of moving down off of boundaries of parent.


Comments

Popular posts from this blog

c++ - Function signature as a function template parameter -

algorithm - What are some ways to combine a number of (potentially incompatible) sorted sub-sets of a total set into a (partial) ordering of the total set? -

How to call a javascript function after the page loads with a chrome extension? -