The solution I use is to bind the event handlers in my code and not to rely on the generated designer code. That is, in my form _Load event I populate the fields on the form, then after that is complete I bind the event handlers.
This is actually a pretty easy change to make. You can simply go to the event handler method declaration, and do a global search for that name. This will show you where in the .Designer.cs file it is referenced. Open that file, cut that line of code, and paste it into your form Load method (or wherever you need it).
Dinko | Tech Support Engineer
answered on 23 May 2022, 01:25 PM
As David suggested, you could subscribe to the SelectedIndexChanged event of the control at a later stage. You can do that in the Load event of the form or in the Shown event which is called after the first event.
Give this approach a try and let me know if it is working for you.