Use the DefaultEvent attribute in .NET

0.00 avg. rating (0% score) - 0 votes

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 Reorg()
End Class


public class Organization


0.00 avg. rating (0% score) - 0 votes


A tough developer who likes to work on just about anything, from software development to electronics, and share his knowledge with the rest of the world.

Leave a Reply

Your email address will not be published. Required fields are marked *

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>