By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
443,815 Members | 1,151 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 443,815 IT Pros & Developers. It's quick & easy.

how to set a default event on a user control

P: n/a
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!
Mar 22 '06 #1
Share this Question
Share on Google+
2 Replies


P: n/a
"Brian Henry" <no****@nospam.com> schrieb:
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...
///

--
M S Herfried K. Wagner
M V P <URL:http://dotnet.mvps.org/>
V B <URL:http://classicvb.org/petition/>

Mar 22 '06 #2

P: n/a
"Brian Henry" <no****@nospam.com> schrieb
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("MyEv ent")> _
Public Class UserControl1

End Class

Armin
Mar 22 '06 #3

This discussion thread is closed

Replies have been disabled for this discussion.