Use: AddHandler RadioButton1.Click, Addressof myfunction
Hope this helps
Chris
"Juan" <(E-Mail Removed)> wrote in message
news:OWkXP%(E-Mail Removed)...
> Hello:
>
> I'm creating some radiobuttons and i want to asociate their events
> dinamically with a function. How can I do it?
>
> In c# there is no trouble, because it can handle with it:
>
> radiobutton1.click += new System.eventhandler(this.myfunction);
>
> but when i use VB.NET I need to do in this way:
>
> public sub myfunction() handles radiobutton1.click
>
> Thanks
>
> Juan
>
>
|