class inherit question
- From: "Hardy Wang" <hardywang@xxxxxxxxxxxxxxxxx>
- Date: Mon, 16 Jan 2006 15:48:04 -0500
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
.
- Follow-Ups:
- RE: class inherit question
- From: "Yuan Ren[MSFT]"
- Re: class inherit question
- From: Joe
- RE: class inherit question
- Prev by Date: Re: Making panels transparent?
- Next by Date: Re: Making panels transparent?
- Previous by thread: 99% cpu
- Next by thread: Re: class inherit question
- Index(es):
Loading