Default Event in VB NET

V

Vinicius Gonzaga

Hi,
I have a UserControl with a Button. When I click in this button, The default
event is the "Load".
I'd Like to Change this default event (Load) to Click.

Thanks...
 
T

Tom Shelton

Hi,
I have a UserControl with a Button. When I click in this button, The default
event is the "Load".
I'd Like to Change this default event (Load) to Click.

Thanks...

<DefaultEvent("Click")> _
Public Class MyUserControl
....
End Class

HTH
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top