Following is a method of the Control class defined in System.Windows.Forms
protected virtual void OnPaint(PaintEventArgs e)
{
if (this.CanRaiseEvents)
{
PaintEventHandler handler = (PaintEventHandler) base.Events[EventPaint];
if (handler != null)
{
handler(this, e);
}
}
}
Paint EventHandler is a delegate defined as;
public delegate void PaintEventHandler(object sender, PaintEventArgs e);
Where can I find the code for the above mentioned method : PaintEventHandler?
Thanks, Shilpi
PaintEventHandler in C#?
just right click on method name and choose "go to definition"
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment