In this situation, I have to do the following steps:
- switch to designer mode
- mark one control
- switch to property grid
- switch to events page
- double click on the wished EventHandler
- write the code
- switch to designer mode again
- mark the next control
- switch to property grid
- switch to events page
- choose my EventHandler for this control
- redo these steps for all the other controls
I'ld prefer a simplier way: Choose all the controls in a CheckedListBox, choose one EventHandler in a ComboBox with all events that are available to all the chosen controls, create the method template, add the EventHandler to all these controls in the .Designer.cs
Perhaps, this way could be integrated in the ShowCompletionWindow() method. But the integration of CheckedListBox and ComboBox could be a little bit more complicated. Therefore, a better way could be the ContextMenu after writing the code for the first control as a MenuItem "Add this EventHandler to other controls".
Juergen
until now Version 2.2.1.2648