Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Overriding Base Events in C#
Message
From
05/04/2002 22:04:33
 
General information
Forum:
ASP.NET
Category:
Forms
Miscellaneous
Thread ID:
00641684
Message ID:
00641719
Views:
17
Hi, Fred.

I´m just beginning my studies with C#, but let me try to learn with you. :)

I think the problem is that you´re not making a reference to the parentclass method.

Try this:
public virtual void Load(object sender, System.EventArgs e)
		{
			MessageBox.Show("Base Load");
		}


public override void Load(object sender, System.EventArgs e)
		{
			MessageBox.Show("Form Load");
		}
Claudio Lassala
Previous
Reply
Map
View

Click here to load this message in the networking platform