Articles - Events

0

Like

Every Control in C# is full of events like MouseButtonDown and KeyDown, but what happens when you want an object to fire an event that isn't already built in? This snippet tutorial will go through all the code required to create your own events and custom event handlers.

As an example, I'm going to create a class that holds information about a car. This will include make, model, year, and owner. When information about the car is changed, this class will fire events letting anyone who is listening know that something has changed.

Below is the basic class with all the members menti ...Read more
Posted by: Teena
On 01 Apr 2012 | Views: 1306 | Categories: Events, C#
Page 1 of 1
Other lins

.Net Techies
Other lins