From: Vinicius Gonzaga on
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...


From: Tom Shelton on
On 2010-03-10, Vinicius Gonzaga <vinicius(a)lmp.ufrj.br> wrote:
> 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
--
Tom Shelton
From: Vinicius Gonzaga on
is done
Thank you


"Tom Shelton" <tom_shelton(a)comcastXXXXXXX.net> escreveu na mensagem
news:uP$BLmIwKHA.812(a)TK2MSFTNGP06.phx.gbl...
> On 2010-03-10, Vinicius Gonzaga <vinicius(a)lmp.ufrj.br> wrote:
>> 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
> --
> Tom Shelton