TabControl
TabControl copied to clipboard
There is error when drap this control from toolbox。
Microsoft Visual Studio
创建组件“TabHost”失败。错误消息为:
“System.NullReferenceException: 未将对象引用设置到对象的实例。
在 TabControl.TabHost.LayoutTabs() 位置 D:\my source\TabControl\TabControl\TabHost.cs:行号 390
在 TabControl.TabHost.OnResize(EventArgs e) 位置 D:\my source\TabControl\TabControl\TabHost.cs:行号 340
在 System.Windows.Forms.Control.OnSizeChanged(EventArgs e)
在 System.Windows.Forms.Control.UpdateBounds(Int32 x, Int32 y, Int32 width, Int32 height, Int32 clientWidth, Int32 clientHeight)
在 System.Windows.Forms.Control.UpdateBounds(Int32 x, Int32 y, Int32 width, Int32 height)
在 System.Windows.Forms.Control.SetBoundsCore(Int32 x, Int32 y, Int32 width, Int32 height, BoundsSpecified specified)
在 System.Windows.Forms.Control.ScaleControl(SizeF factor, BoundsSpecified specified)
在 System.Windows.Forms.ScrollableControl.ScaleControl(SizeF factor, BoundsSpecified specified)
在 System.Windows.Forms.Control.ScaleControl(SizeF includedFactor, SizeF excludedFactor, Control requestingControl)