Thanks for your early reply. Is there any other option for writing event other than adding a control in IDE. I like to add all the controls during run time and a single event for the control arrays. Thanks in advance