The OnPaint method of Control simply dispatches the Paint event to registered event receivers. The base Control class does not know how a derived control needs to be drawn and does not provide any painting logic in the OnPaint method. The Paint event is discussed in detail here because every Windows Forms control must override the Paint event that it inherits from Control. Override the protected On EventName method.Ĭall the On EventName method of the base class from the overridden On EventName method, so that registered delegates receive the event. NET Framework are identical and are summarized in the following list. The basic steps for overriding any event defined in the.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |