Article ID: 161156
Article Last Modified on 6/29/2004
APPLIES TO
- Microsoft Visual Basic 5.0 Control Creation Edition
- Microsoft Visual Basic 5.0 Enterprise Edition
- Microsoft Visual Basic 6.0 Enterprise Edition
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
Keywords: kbhowto kbctrlcreate kbusage KB161156