C# Issue

I am having an issue with C# that I am unfamiliar with. This is the actual error message I am getting:

<color="darkred">The keyword new is required on 'MyMail.UI.Controls.WButtonEdit.Validate' because it hides inherited member 'System.Windows.Forms.ContainerControl.Validate()'.</color>

How do I fix this?

Here is my updated line:public new event WValidate_EventHandler Validate = null;Still no luck. I've also tried:new public event WValidate_EventHandler Validate = null;I'm not a C# expert so this one is really getting to me.

[564 byte] By [codefund.com] at [2007-12-16]
# 1
Validate is a method that return a boolean, while you are trying to override it with an event. I don't think it possible to everride or new a member from the base class with different kind of member. My suggestion would be to change your event name to "OnValidate" which is common practice to name an event
codefund.com at 2007-9-8 > top of Msdn Tech,Windows Forms,Windows Forms General...
# 2
did you try this?

new public bool Validate()
{
//code here
}

new in C# is sort of like Shadows in VB.NET, except that new hides a member by it's signature only.

codefund.com at 2007-9-8 > top of Msdn Tech,Windows Forms,Windows Forms General...