You can do this using the AddHandler keyword.
eg.
AddHandler myDropDownList.SelectedIndexChanged, AddressOf
Me.myDropDown_OnSelectedIndexChanged
--
Philip Q
Microsoft MVP [ASP.NET]
"Nirmalkumar" <> wrote in message
news:A773854F-AA30-49E1-B655-...
> How to attach an event to dynamically created control in VB.NET
>
> I have dynamically created dropdown list in code behind (VB.NET). For this
> control I want to attach an event for action 'OnSelectedIndexChanged'.
>
> What is the property to assigne an event to a dynamically created
> dropdownlist
>
|