how to set a default event on a user control

  • Thread starter Thread starter Brian Henry
  • Start date Start date
B

Brian Henry

when you have a user control on a form and double click it, it creates code
to handle its default event "Load" how can i change this so if i double
click a user control on a form that it will take by default the event I
specified as the default one? thanks!
 
Brian Henry said:
when you have a user control on a form and double click it, it creates
code to handle its default event "Load" how can i change this so if i
double click a user control on a form that it will take by default the
event I specified as the default one?

\\\
<DefaultEvent("Tick")> _
Public Class...
///
 
Brian Henry said:
when you have a user control on a form and double click it, it
creates code to handle its default event "Load" how can i change
this so if i double click a user control on a form that it will
take by default the event I specified as the default one? thanks!


<System.ComponentModel.DefaultEventAttribute("MyEvent")> _
Public Class UserControl1

End Class



Armin
 
Back
Top