Groups | Blog | Home
all groups > vb.net controls > february 2006 >

vb.net controls : User Control - setting "default" event


Simon Verona
2/16/2006 12:00:00 AM
I know I've seen the answer before, but can't seem to find it using
google...

I have a usercontrol...

I want to set one of my custom events as being the "default" event for the
usercontrol, such that in the designer, when I click on it it opens the code
for that event rather than the "load" event (which I presume is the default
for usercontrol).

Can anybody remind me?

This is VS2003/framework 1.1/vb.net...

Regards
Simon

Herfried K. Wagner [MVP]
2/16/2006 12:00:00 AM
"Simon Verona" <nomail@nomail.zzz> schrieb:
[quoted text, click to view]

\\\
<DefaultEvent("Tick")> _
Public Class...
///

--
M S Herfried K. Wagner
M V P <URL:http://dotnet.mvps.org/>
V B <URL:http://classicvb.org/petition/>
Simon Verona
2/16/2006 12:06:55 PM
I knew it was simple!

Thanks Herfried

Simon
[quoted text, click to view]

AddThis Social Bookmark Button