chuawenching
Well-known member
- Joined
- Jul 26, 2003
- Messages
- 66
Hi there.
I search google that i can use delegate and events to replace WithEvents.. but i had 1 vb6 sample code.. which i not sure how to code it in c#
Code:
====
private WithEvents ParA as EngineParSystem
private Sub ParA_NewPar(VelocX as Single, VelocY as Single, VelocZ as Single)
LifeS = CurrentLifeT
End Sub
So how to code delegates and event with that in c#?
Any help?
Thanks.
Regards,
Chua Wen Ching
I search google that i can use delegate and events to replace WithEvents.. but i had 1 vb6 sample code.. which i not sure how to code it in c#
Code:
====
private WithEvents ParA as EngineParSystem
private Sub ParA_NewPar(VelocX as Single, VelocY as Single, VelocZ as Single)
LifeS = CurrentLifeT
End Sub
So how to code delegates and event with that in c#?
Any help?
Thanks.
Regards,
Chua Wen Ching