Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Overriding Base Events in C#
Message
De
05/04/2002 22:04:33
 
Information générale
Forum:
ASP.NET
Catégorie:
Formulaires
Divers
Thread ID:
00641684
Message ID:
00641719
Vues:
18
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
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform