[DesignerAttribute(typeof(System.Windows.Forms.Design.ControlDesigner))]
I removed it and it all works ok now. > private void InitializeComponent() > { > System.ComponentModel.Container components = new Container(); > } >>Try removing that line and see what happens.
>>using System; >>using System.Collections; >>using System.ComponentModel; >>using System.ComponentModel.Design; >>using System.Drawing; >>using System.Windows.Forms; >> >> >>namespace Test.GUI >>{ >> >> [ToolboxBitmap(typeof(TabControl))] >> [DesignerAttribute(typeof(System.Windows.Forms.Design.ControlDesigner))] >> public class _TabControl : System.Windows.Forms.TabControl >> { >> private System.ComponentModel.Container components = null; >> >> public _TabControl() >> { >> InitializeComponent(); >> } >> private void InitializeComponent() >> { >> System.ComponentModel.Container components = new Container(); >> } >> >> protected override void Dispose( bool disposing ) >> { >> if( disposing ) >> { >> if( components != null ) >> components.Dispose(); >> } >> base.Dispose( disposing ); >> } >> } >>} >>