Link to home
Create AccountLog in
Avatar of Ed Covney
Ed CovneyFlag for United States of America

asked on

How can I determine # of monitors and the resolution of each?

When exiting my program, I write the form's position (X, Y) (i.e. LEFT, TOP) to the registry, and read it when my form starts up next. A problem recently occurred in that if I change screen resolution between, opening the small form at its last position may be entirely "off screen" and hence opens it minimized (form does maximize - so it can't be placed in a viewable position).

So I need to make an adjustment or two (recommendations appreciated), but I need to know  if the (X, Y) stored falls inside the monitor(s') resolution(s).

TIA - Ed
Avatar of bipul4b
bipul4b

ASKER CERTIFIED SOLUTION
Avatar of jimyX
jimyX

Link to home
membership
Create an account to see this answer
Signing up is free. No credit card required.
Create Account
Avatar of Ed Covney

ASKER

jimyX -

Thank you - This is exactly what I was hoping for !!