I have a control with custom events, fired by events occured from inside the
control.
But I can not see those events in design time from Properties window.
What's wrong???
Following the code:
public class test: System.Windows.Forms.UserControl
{
public event TSClickEventHandler TSClick;
//regular implementation
private void tsPlay_Click(object sender, System.EventArgs e)
{
TSButton btn = (TSButton)sender;
// do something
TSClickArgs btn_arg = new TSClickArgs(btn);
TSClick(this,btn_arg);
}
}
public class TSClickArgs : EventArgs
{
private TSButton m_button;
public TSClickArgs(TSButton button)
{
m_button = button;
}
}
public delegate void TSClickEventHandler(object sender, TSClickArgs e);