Re: Capture user changing screen res

Tech-Archive recommends: Fix windows errors by optimizing your registry



"mabond" <mabond@xxxxxxxxxxxxxxxxxxxxxxxxx> schrieb
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


.



Relevant Pages

  • RE: Cannot fetch output parameters with SQL_DATA_AT_EXEC input
    ... I have also created a C++ Win32 command-line app that executes this SP the ... SQLHSTMT hStmt = NULL; ... SQLRETURN res; ... SQLGetDiagRec(SQL_HANDLE_ENV, hEnv, 1, szState, &nNative, szDescr, ...
    (microsoft.public.data.odbc)
  • Re: minor flaw in graphical install
    ... If you try to install at a res of 800x600 (like when it's in a vmware ... The only option is to re-size the screen res, ... Hold alt and drag the window up. ...
    (Ubuntu)
  • minor flaw in graphical install
    ... If you try to install at a res of 800x600 (like when it's in a vmware ... The only option is to re-size the screen res, ...
    (Ubuntu)
  • Re: Scale a paradox form
    ... Simply make it a fixed size for the lowest res it will be used at and make it look good for that. ... If you want to be more complex, create different forms for different screen res and test the res and then pick the right form. ... There is a form sizing demo available on our paradox resources page. ...
    (comp.databases.paradox)