I understand that it is necessary to create a Minimal, Complete, and Verifiable example when posting questions to StackOverflow.
However, when dealing with UI related questions such as WinForms in Visual C#, a lot of the code for creating the Form tends to be very long, and are auto generated by Microsoft Visual Studio's designer.
For example, to create a simple form with a ListBox and a Button
The following code is generated:
Meanwhile, the only code that I wrote is only a few lines in Form1.cs
: http://pastebin.com/BNMCnKzX
So my thought was that for a Minimal, Complete, and Verifiable example, I should only include the code that I actually wrote, and not the code that was automatically generated. However, based by the close vote on my question Why does the SelectedIndexChanged event fire in a ListBox when the selected item is modified?, this does not seem to be the case.
So my question is, how much code do we need to include for a Minimal, Complete, and Verifiable example when posting UI related questions in C#, or in general?