What are system events? Well, basically they are events raised by the operating system when a user performs an action which affects the operating environment. System events are accessible through the Microsoft.Win32.SystemEvents class. SystemEvents Events Below is a list of all the system events found within the SystemEvents class. Name Description DisplaySettingsChanged Occurs when the [...]
In this article I am going to show you how to monitor a folder for changes. A reason why you might want to do this is for example if you want to keep two files in different locations in sync. When the original file is changed it would trigger an event and you can update [...]
A few days ago I wrote an article describing how to create a worker thread for your Windows Forms. Just recently a friend of mine brought to my attention that the .NET Framework contains a component called BackgroundWorker which helps you to do what I had explained in that article but in an easier and [...]
Sometimes you might require to stop a user from closing your Windows form – maybe because the form is processing something in the background and you don’t want the user to break that process, or maybe because the user does not have access rights to close your application. Either way this is very simple to [...]
When developing Windows applications using Windows Forms, you will most likely find yourself needing to make use of the form’s events, and this requires you to know when each form event fires. In this short reference article I will show you the sequence of the form events when the Form is being started and when [...]