You can do this using the AddHandler keyword.
eg.
AddHandler myDropDownList.SelectedIndexChanged, AddressOf
Me.myDropDown_OnSelectedIndexChanged
--
Philip Q
Microsoft MVP [ASP.NET]
"Nirmalkumar" <Ni*********@discussions.microsoft.com> wrote in message
news:A7**********************************@microsof t.com...
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