Skip to Content
Microsoft® Visual Studio® 2010 Unleashed
book

Microsoft® Visual Studio® 2010 Unleashed

by Mike Snell, Lars Powers
August 2010
Intermediate to advanced
1224 pages
34h 17m
English
Sams
Content preview from Microsoft® Visual Studio® 2010 Unleashed

Creating and Raising Events

There is not much functionality you can build using the .NET languages without events. Events enable one piece of code to notify another bit of code that something has just happened. Code that raises events are said to publish an event and those that receive the event notice are said to subscribe to events. A simple example is when you write a user interface for the Web or Windows. In these cases, you are consistently adding code that subscribes to events published by the UI such as a user clicking on a button control. Of course an event may have more than a single subscriber and subscribers may be subscribed to multiple events.

Create an Event

When you create an event you need to determine if you need to pass custom ...

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Microsoft® Visual Studio® 2012 Unleashed, Second Edition

Microsoft® Visual Studio® 2012 Unleashed, Second Edition

Mike Snell, Lars Powers
Professional Visual Studio® 2008

Professional Visual Studio® 2008

Nick Randolph, David Gardner
Professional C# 5.0 and .NET 4.5.1

Professional C# 5.0 and .NET 4.5.1

Christian Nagel, Jay Glynn, Morgan Skinner
ASP.NET 4 Unleashed

ASP.NET 4 Unleashed

Stephen Walther, Kevin Hoffman, Nate Dudek

Publisher Resources

ISBN: 9780132121057Purchase book