How to handle deffirent screen resolution

  • Thread starter Thread starter Abhishek Rai
  • Start date Start date
A

Abhishek Rai

Hi,

I am working on the application which is based on the co-ordinate system. My
problem is to how can get relative co-ordinate in different resolution
like(1024x768 or 800x600).
(e.g. if I store one pont co ordinate like (100,100) in 1024x768 resolution
what's the coordinates in 800x600 resolution).

Thanks
Abhishek Rai
 
Hi,

I am working on the application which is based on the co-ordinate system. My
problem is to how can get relative co-ordinate in different resolution
like(1024x768 or 800x600).
(e.g. if I store one pont co ordinate like (100,100) in 1024x768 resolution
what's the coordinates in 800x600 resolution).

Thanks
Abhishek Rai

Surely it will still be 100, 100.

Your problem might arise when you try and define a coordinate that is
outside he bounds of that resolution, such as 1000,800 on a 800x600
display.

No idea what will happen then, but that should be easy enough to test
by defining such a coordinate and then reducing the display resolution
of your monitor.

I know that in VB.net there are methods to obtain the screen
resolution and window position. I've not looked into VBA deeply enough
to know whether there are some, but I suspect there might be.
 
Back
Top