|
-
Oct 26th, 2002, 06:21 PM
#1
Thread Starter
yay gay
Events in C#
how do i do the VB.NET
VB Code:
WithEvents mClass as new Class
in C#?
and how do i declare events? and raise them?
-
Oct 26th, 2002, 07:58 PM
#2
Frenzied Member
-
Oct 26th, 2002, 08:10 PM
#3
Frenzied Member
Declaring and using events in C# is a little more involved than in VB.NET. Listen to what Kovan said and read up on Delegates.
Dont gain the world and lose your soul
-
Oct 26th, 2002, 08:26 PM
#4
PowerPoster
Here is an example I did that I posted in the Codebank of VBWorld.com
http://216.26.168.92/vbworld/code.aspx?id=131
-
Oct 27th, 2002, 06:51 AM
#5
Thread Starter
yay gay
-
Oct 27th, 2002, 07:23 AM
#6
Thread Starter
yay gay
what is the difference of a delegate and an event? ...
-
Oct 27th, 2002, 10:03 AM
#7
Thread Starter
yay gay
i didnt get with hellswraith's tuturial the real point of a delegate..i just see 50 lines of code just for a simple msg =\
-
Oct 27th, 2002, 02:00 PM
#8
PowerPoster
what is the difference of a delegate and an event? ...
An event is a type of delegate. You can think of a delegate as a type-safe function pointer. You can use these for dynamtic run-time method invokation and callbacks. Objects use events to notify other objects.
Last edited by Lethal; Oct 28th, 2002 at 12:28 AM.
-
Oct 28th, 2002, 02:25 PM
#9
Thread Starter
yay gay
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
|