VB to C#, need help with WithEvents

  • Thread starter Thread starter Tee
  • Start date Start date
T

Tee

Hi,

I am converting a code from VB to C#.

in VB, it's
Private WithEvents MyButton As Button

what's the code in C# ?

I can't get the replacement for the "WithEvents" in C#.

Anyone know it?



Thanks.
 
Tee said:
Hi,

I am converting a code from VB to C#.

in VB, it's
Private WithEvents MyButton As Button

what's the code in C# ?

I can't get the replacement for the "WithEvents" in C#.

Anyone know it?

Simple: there isn't one.
 
What he means is that you don't need an equivalent - C# is smart
enough to know what you mean once you make the declaration (ditto
for "Shadows", "Overloads", etc.).

*-----------------------*
Posted at:
www.GroupSrv.com
*-----------------------*
 
Back
Top