In VB.Net in a class I can define an event as:
Public Event MyEvent
and raise it in a method as :
and in another class that has an instance of first class I can catch the event.
How can I do this simple process in C#? We don't have RaiseEvent in C#.
Actually I want to notify another class when a method executes in the class.
Control.DrawToBitmap is the general answer, some Controls (such as RTB) need a bit more effort though.
Luc Pattyn Have a look at my entry for the lean-and-mean competition; please provide comments, feedback, discussion, and don’t forget to vote for it! Thank you. Local announcement (Antwerp region): Lange Wapper? Neen!