|
|
Title | Use the DefaultEvent attribute in VB .NET |
Description | This example shows how to use the DefaultEvent attribute in VB .NET. |
Keywords | DefaultEvent, DefaultEventAttribute, attribute, VB.NET, property |
Categories | VB.NET |
|
|
The DefaultEvent attribute indicates a class's default event. If the class is a component and you double-click on it in a form, the code editor opens to this event.
|
|
<DefaultEvent("Reorg")> _
Public Class Organization
...
Public Event Mutiny()
Public Event Reorg()
Public Event Closing()
End Class
|
|
|
|
|
|