PC Review


Reply
Thread Tools Rate Thread

Detecting screen resolution changes!

 
 
Lee
Guest
Posts: n/a
 
      20th Jul 2006
Hi,

How can i do this with C# and .NET 2 ?

thanks in advance
lee


 
Reply With Quote
 
 
 
 
Mike D Sutton
Guest
Posts: n/a
 
      20th Jul 2006
> How can i do this with C# and .NET 2 ?

Respond to the Microsoft.Win32.SystemEvents.DisplaySettingsChanged event:

***
Microsoft.Win32.SystemEvents.DisplaySettingsChanged +=
new EventHandler(SystemEvents_DisplaySettingsChanged);

....

void SystemEvents_DisplaySettingsChanged(object sender, EventArgs e) {
MessageBox.Show("Display settings changed!");
}
***

Hope this helps,

Mike


- Microsoft Visual Basic MVP -
E-Mail: (E-Mail Removed)
WWW: Http://EDais.mvps.org/


 
Reply With Quote
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Detecting resolution of client browser Grzegorz Klimsa Microsoft ASP .NET 1 3rd Jul 2008 04:43 AM
Detecting screen resolution in server code? Bjorn Sagbakken Microsoft ASP .NET 14 5th Dec 2007 10:11 PM
Screen resolution changing to unsuported screen res during Start up - blank screen??? rj Windows XP General 3 17th Aug 2007 06:37 PM
Detecting Screen resolution Greg Smith Microsoft Dot NET Framework Forms 2 3rd Jun 2004 08:13 PM
Detecting screen resolution and resizing forms and objects, fonts etc to suit dreamer Microsoft VB .NET 3 19th May 2004 03:39 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 01:47 AM.