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 UserControl that you create. MORE INFORMATION
To 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" check box 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: Q161208 HOWTO: Create a Default Property for a UserControl Additional query words:
Keywords : kbusage kbVBp500 kbVBp600 kbGrpVB kbCtrlCreat VBCCE VBKBCtrl_VBKBStd |
Last Reviewed: January 5, 2000 © 2000 Microsoft Corporation. All rights reserved. Terms of Use. |