That's right. You can "overrides" (extra s) in VB.Net as well, in which case
you need to call the base method using MyBase.OnUnload(e). Many people
prefer to override than the magic done by VB.NET because it's more
conventional and follows OO paradigms. You also have control over whether or
not the base method should be called, and when (normally you put it at the
end of the method, but sometimes you want it elsewhere).
Karl
--
http://www.openmymind.net/ http://www.fuelindustries.com/
"Edwin Knoppert" <ne**@hellobasic.com> wrote in message
news:43**********************@text.nova.planet.nl. ..
yes, that helps a lot but in this case OnUnload() inserted:
base.OnUnload(e);
This is normal right (since it seems to be an override which is not the
case in VB) ?
Full:
protected override void OnUnload(EventArgs e)
{
base.OnUnload(e);
}
I found out that there much more differences between these two than
anticipated.
For the ones needing a comparisation:
http://www.dnzone.com/ShowDetail.asp?NewsId=356
"Karl Seguin [MVP]" <karl REMOVE @ REMOVE openmymind REMOVEMETOO . ANDME
net> schreef in bericht news:O0****************@TK2MSFTNGP15.phx.gbl... Ya...it's a nice feature of VB.NET. The best way to do it in C# is to
hand code it :)
intellisense will often kick in if you simply type in the word "override"
witin a class where you want ur method.
Karl
--
http://www.openmymind.net/
"Edwin Knoppert" <ne**@hellobasic.com> wrote in message
news:43**********************@text.nova.planet.nl. .. I'm doing some c# in VWD.
In VB-mode i can select a page event and VWD inserts the call for me.
Why isn't this in c# ?
What's the best way to do this?