|
-
Aug 10th, 2002, 02:48 PM
#1
Thread Starter
Dazed Member
Events?
I just need someone to tell me if i am on the right track to understanding events in .Net. I havent picked up VB.Net yet so i can't try out these concepts.
Say for instance that i want to set up an event in a class. Would these be the appropriate steps that i would take?
1.) Create a class with the event defined within it usign the Event keyword.
2.) Create a new instance of the class that contains the event
using the WithEvents keyword.
3.)Set up the listener using the Handles keyword in the method signature mapping the method to the event being raised.
4.) Raise the event using the RaiseEvent keyword.
Any help would be sweet.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|