Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Overriding Base Events in C#
Message
 
À
05/04/2002 20:50:14
Information générale
Forum:
ASP.NET
Catégorie:
Formulaires
Divers
Thread ID:
00641684
Message ID:
00641718
Vues:
19
hi guys,
This is my Base Class

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


this is in the inherited Form Called MainMenu. I am overriding The Load Event in here. If I remove the Override Keyword it Compiles, but it shows me 2 Messageboxes first the Messnox in Base Class and then the messbox in the inherited form. I need to show only the message box in the inherited form Load event.

public override void MainMenu_Load(object sender, System.EventArgs e)
{
MessageBox.Show("Form Load");
}


Whats wrong with this Code. I keep getting a Compiler Error:
No Siutable Method Found to override

TIA
Fred Besterwitch, MCP

The harder you work. The luckier you get.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform