Capture user changing screen res

G

Guest

Hi

My app requires to run in a minumum of 1024 X 768. There are plenty of users
who for their own comfort continue to work in 800 X 600. The res is checked
at start-up. If res is less than required the user will be advised and the
app will close.

I need to take care of the user who changes their screen res after
successfully starting up the app in the required res (yes there are those
that would do such a thing)

The app does not involve the manipulation of any data or files it is simply
a 'window' to view certain activity on the network. There is therefore no
loss if the app closes down (after warning the user) on change of screen res,
which is what I want it to do.

Can this be done and any ideas how?
, with the user advised of the requirement
 
A

Armin Zingler

mabond said:
Hi

My app requires to run in a minumum of 1024 X 768. There are plenty
of users who for their own comfort continue to work in 800 X 600.
The res is checked at start-up. If res is less than required the
user will be advised and the app will close.

I need to take care of the user who changes their screen res after
successfully starting up the app in the required res (yes there are
those that would do such a thing)

The app does not involve the manipulation of any data or files it is
simply a 'window' to view certain activity on the network. There is
therefore no loss if the app closes down (after warning the user) on
change of screen res, which is what I want it to do.

Can this be done and any ideas how?


Attach to this event:

Microsoft.Win32.SystemEvents.DisplaySettingsChanged

To get the current res, have a look at the System.Windows.Forms.Screen
class.


Armin
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top