HOWTO: Create A Default Event for a UserControlLast reviewed: March 21, 1997Article ID: Q161156 |
The information in this article applies to:
SUMMARYYou can create default events for your User Controls. A default event is the event selected when you double-click on the control in Design Mode. For example, when you double-click on a CommandButton, the code window creates a Sub-procedure for Command_Click. Therefore, click is the default event for the CommandButton. This article will explain how to create a default event for a User Control that you create.
MORE INFORMATIONTo create a default event, first you must create the event by doing the following:
After the event is created, follow these steps to make the event the default event:
You can only have one default Event for each Control. Therefore, you can only select the "User Interface Default" checkbox for one event. If you select this checkbox for another event, it will ask you if you want to make the newly-selected event the Default event.
REFERENCESFor additional information on the User Control, please see the following article in the Microsoft Knowledge Base:
ARTICLE-ID: Q161208 TITLE : How to Create a Default Property for a UserControl |
Keywords : kbusage vb5all vb5howto VBKBCtrl_VBKBStd kbhowto
© 1998 Microsoft Corporation. All rights reserved. Terms of Use. |