how to conform visual component of a running applicaton with target platform ?

  • Thread starter Thread starter CSharp NewBie
  • Start date Start date
C

CSharp NewBie

Hi, does anybody know how to find out of dimension of a screen?
let's say we have an application which should run on different PCs, laptops
and ... then we have to write the application in a way to sense the
dimension of the platform (or target platform) it's running or will be
running on.
I had written a program on PC when I ran it on Laptop, its dialog or form
occupied more 90% of the screen. So, program needs to know how conform
itself with new environment.

Any suggestions ?

Thanks in advance. Please write me in details if you have time otherwise
don't leave only a word. it only makes me confused. thanks again.
 
Is it possible to try a screen-resolution based approach instead? If so, you
can use the Screen class in the System.Windows.Forms namespace.You can
rescale your UI components depending on the screen resolution if you
wish.(See Screen.Bounds or Screen.WorkingArea properties)
 
Back
Top