
How to make the button in Usercontrol call Usercontrol's Click event
Hi, then try making your own event:
Event Click(ByVal sender As Object, ByVal e As System.EventArgs)
(put this at the top of your class)
then...
RaiseEvent Click(Me, New System.EventArgs())
--
Remember: There's no place like 127.0.0.1
==============================================
Happy To Help,
Tom Spink
http://dotnetx.betasafe.com >> VB, VB.NET, C#, C++ Code
Happy Coding!!
Please respond to the newsgroups, so all can benefit.
One day
Quote:
> I try it but it cause syntax error. It saind 'Derieved
> class can not raise base class event'
> >-----Original Message-----
> >In the click event of the button, have you tried:
> >RaiseEvent Click(Me, New System.EventArgs())
> >--
> >Remember: There's no place like 127.0.0.1
> >==============================================
> >Happy To Help,
> >Tom Spink
> >http://dotnetx.betasafe.com >> VB, VB.NET, C#, C++ Code
> >Happy Coding!!
> >Please respond to the newsgroups, so all can benefit.
> >One day
> >> I create user control with 1 button in it. What
> statement
> >> or syntax to do this. When clicking at button,it will
> call
> >> or raise usercontrol's event click.
> >.