M
Martijn Mulder
Documentation suggests that I should make a call to the base-class method
for some methods. When I try to do so for the class below, I get wrong
results. What is the correct way to make a call to the base class for an
event like this?
//class Form
class Form:System.Windows.Forms.Form
{
//constructor
Form()
{
MouseEnter+=OnMouseEnter;
}
//OnMouseEnter
void OnMouseEnter(System.Object a,System.EventArgs b)
{
base.OnMouseEnter(b);
}
//Main
[System.STAThread]
static void Main()
{
System.Windows.Forms.Application.Run(new Form());
}
}
for some methods. When I try to do so for the class below, I get wrong
results. What is the correct way to make a call to the base class for an
event like this?
//class Form
class Form:System.Windows.Forms.Form
{
//constructor
Form()
{
MouseEnter+=OnMouseEnter;
}
//OnMouseEnter
void OnMouseEnter(System.Object a,System.EventArgs b)
{
base.OnMouseEnter(b);
}
//Main
[System.STAThread]
static void Main()
{
System.Windows.Forms.Application.Run(new Form());
}
}