---
title: "I need a example where screen resolution changed event handled"  
description: "I need a example where screen resolution changed event handled"  
author: "E E Cummings"  
published: 2013-06-15  
updated: 2013-07-08  
canonical: https://www.mindstick.com/forum/1137/i-need-a-example-where-screen-resolution-changed-event-handled  
category: "c#"  
tags: ["c#"]  
reading_time: 1 minute  

---

# I need a example where screen resolution changed event handled

Hi [Expert](https://www.mindstick.com/articles/13120/an-expert-financial-advice-will-improve-your-finances),\
I need a example where [screen resolution](https://answers.mindstick.com/qa/102458/explain-the-significance-of-a-laptop-s-screen-resolution) changed [event](https://www.mindstick.com/articles/167719/marquee-hire-benefits-of-event-lighting-hire-london) handled\
Thanks in advance.

## Replies

### Reply by Vijay Shukla

Hey E E Cummings!We need to below code for getting the [screen](https://www.mindstick.com/forum/33644/loading-screen-during-ajax-call) [resolution](https://www.mindstick.com/articles/12502/looking-for-an-mba-degree-we-guide-you-with-the-perfect-resolution) changed eventwrite this code under the form_Load event:-

```
        private void Form1_Load(object sender, EventArgs e)        {                    Microsoft.Win32.SystemEvents.DisplaySettingsChanged += new EventHandler(getScreenResolution);                     //Above line of code event handled with the help of Delegate        }       // Below method call when we trying to change the Resolution of our computer screen.        private void getScreenResolution(object sender, EventArgs e)        {            MessageBox.Show("Resolution Changed!");        }
```


---

Original Source: https://www.mindstick.com/forum/1137/i-need-a-example-where-screen-resolution-changed-event-handled

Copyright © MindStick Software Pvt. Ltd. This Markdown version is provided for developers, AI systems, and offline reading.
