class inherit question



Hi,
I have two classes (ClassA and ClassB),

public ClassA {
public ClassA() {
this.MyButton.Clicked += new
System.EventHandler(this.MyButton_Click);
}

private void MyButton_Click(object sender, System.EventArgs e) {
MyFunc();
}

protected void MyFunc() {
}
}


public ClassB : ClassA {
.... some functions
}

What I need is, once the event is fired in ClassA, how can I make
inherited classes (e.g ClassB) to know base class fires an event?

--
WWW: http://hardywang.1accesshost.com
ICQ: 3359839
yours Hardy


.


Loading