I have an application with lots of ListBox controls. I was wondering if it would be possible to add the eventhandler for the onselectedindexchanged in the constructor of the Listbox? All listboxes will use the same method for this.
I know I can add them manually but I was hoping for a solution that would change all the ones I currently have to use the same eventhandler and when I add a new one to not have to tie to the method.