Using VS2013 Pro, WinForms, the debugger keeps deleting my event handlers. (I place them inside the Form.Designer.cs file)
I've only started noticing it recently and I'm positive I haven't changed any settings.
Can anyone else replicate this or is it just something on my system?
Steps to replicate:
- Create new project C# WinForms
- Add a split container > Inside panel two of the Base container, nest another split container.
- In the Form.Designer.Cs file, hook up a Click event handler to the nested panel 1 container.
- Run. -Click container - should work fine.
- Exit Debugger > Change color property of the nest panel 1.
- Run > Can no longer click?
- Inspect Code > Event Handler has been deleted?
Form.Designer.csIs that the one that says "do not modify"? What happens if you put the code inForm.csXyz.Designer.csfiles to keep theXyz.csfiles tidy.svcutil's "generated by a tool") butInitializeComponentdoes.