Is there any way I can execute custom code in a Winforms Form when it is opened in the Designer?
As far as I can see, only the InitializeComponent Method is called by the Designer. Neither the Form's constructor nor any event (e.g. Loaded) are invoked.
Of course I could add my code to InitializeComponent. But since this method is re-generated by the Designer all the time this is not a good idea...