R
Ryan Joseph So
Hi,
Is it possible to override an event replacing its EventArgs w/ my own
event? like
this is native event
protected override void OnDropDownClosed(EventArgs e)
{
//code goes here...
}
I created my own EventArgs so I could replace the one on top. Its called
DropDownClosed_EventHandler. So it should look like this.
protected override void OnDropDownClosed(DropDownClosed_EventHandler e)
{
//code goes here...
}
but it doesn't accept it. If i use this code.
public event DropDownClosed_EventHandler DropDownClosed;
DropDownClosed_EventArgs args = new DropDownClosed_EventArgs();
DropDownClosed(this, args);
after i compiled it, it shows 2 DropDownClosed event one is mine and the
other is native. Is there a way to override the original event so i
could use its name at least to create my own event?
Is it possible to override an event replacing its EventArgs w/ my own
event? like
this is native event
protected override void OnDropDownClosed(EventArgs e)
{
//code goes here...
}
I created my own EventArgs so I could replace the one on top. Its called
DropDownClosed_EventHandler. So it should look like this.
protected override void OnDropDownClosed(DropDownClosed_EventHandler e)
{
//code goes here...
}
but it doesn't accept it. If i use this code.
public event DropDownClosed_EventHandler DropDownClosed;
DropDownClosed_EventArgs args = new DropDownClosed_EventArgs();
DropDownClosed(this, args);
after i compiled it, it shows 2 DropDownClosed event one is mine and the
other is native. Is there a way to override the original event so i
could use its name at least to create my own event?