How To Create A Default Event for a UserControl (161156)
The information in this article applies to:
- Microsoft Visual Basic Control Creation Edition for Windows 5.0
- Microsoft Visual Basic Enterprise Edition for Windows 5.0
- Microsoft Visual Basic Enterprise Edition for Windows 6.0
This article was previously published under Q161156 SUMMARY
You 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.
REFERENCES
For additional information on the User Control, please see the following
article in the Microsoft Knowledge Base:
161208 How To Create a Default Property for a UserControl
Modification Type: | Minor | Last Reviewed: | 6/29/2004 |
---|
Keywords: | kbCtrlCreate kbhowto kbusage KB161156 |
---|
|