hello
I have a class in witch I've implemented my private
InitializeComponent function(like the WinForms Designer does).
Code Block
public abstract class MyClass : MainClass
{
private void InitializeComponent()
{
this.FlatStyle = FlatStyle.Flat;
this.SuspendLayout();
this.ResumeLayout(false);
}
protected MyClass()
: base()
{
InitializeComponent();
}
}
}
Now, the CodeAnalysis warn me:
Warning 1 The designer cannot process the code at line 35:
this.FlatStyle = FlatStyle.Flat;
The code within the method 'InitializeComponent' is generated by the designer and should not be manually modified. Please remove any changes and try opening the designer again.

I thik, this is a bug in VS (I use 2008)...