Events in Derived Classes

  • Thread starter Thread starter ReMeN
  • Start date Start date
R

ReMeN

Hi,

I am deriving a windows control into a custom class. How
can I "re-declare"
the events to make them available for use in the new,
derived class?

I'm using C++ .net, will I will interpret any help I can
get.

Thanks.
..
 
Hi!
Override those methods you need to implement custom behavior.
For instance,

protected override void OnClick(EventArgs e)
{
base.OnClick (e);
MessageBox.Show("test");
}

Hope that helps.
Best regards.
 
Back
Top