Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Overriding Base Events in C#
Message
 
To
05/04/2002 20:50:14
General information
Forum:
ASP.NET
Category:
Forms
Miscellaneous
Thread ID:
00641684
Message ID:
00641718
Views:
18
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.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform