C# Equivalent To VB WithEvents?
TIA,
rca
TIA,
rca
To handle an event in C#,
Form1 myForm = (Form1) this.ActiveMDIChild; myForm.Activated += EventHandler(myForm_Activated); |
cheers,
Paul June A. Domag
Forgive my ignorance. I am just now making the switch to .NET.
I think I see what you are describing. It looks similar to the way I did OO programing in C on UNIX long before the advent of OO languages like C++.
Correct me if I'm wrong. It looks like you are assigning a pointer to a function and then assigning that function to an event. Is that correct?
I'm hoping that I'm correct, because it would open up a whole cornucopia of possibilities.
Is this "delegation"? Or is that something different?
Thanks,
rca
cheers,
Paul June A. Domag