Call a Click event

  • Thread starter Thread starter John S
  • Start date Start date
Override OnClick event and Call it from public function
protected override void OnClick(EventArgs e)

{

base.OnClick (e);

}

public void ClickMe()

{

OnClick(null);

}
 
no. that's the difference between 'event' and 'delegate' - 'event's can
only be fired by the object that holds them
 
Back
Top