PDA

View Full Version : Events and Delegates in C#


WhiteWizard
19-Jan-2004, 08:26 PM
Hi all,

I'm getting a bit confused with event handling in C# i'm used to the java listener method could someone give me a quick overview of how to use events in C#.

My particular problem is that i have a navigational device for the elderly and i am using GPS to update the instructions whenever appropriate i would like this to be done by an event rather than the user just clicking a button all the time.

Any help is appreciated

Mordred
20-Jan-2004, 07:20 AM
White Wizard,

PM me your email, I have a sample chapter out of a book regarding delegates and events in C#

Mordred
20-Jan-2004, 07:51 AM
This is a link to the sample chapter regarding delegates from "Programming C#" by Jesse Liberty. Its a great book.

http://www.oreilly.com/catalog/progcsharp3/chapter/ch12.pdf