![](/img/trans.png)
[英]Add/Remove panel controls by clicking button on dynamically added usercontrol
[英]Dynamically add usercontrol to tab panel at center
我正在动态地将tabcontrol添加到选项卡面板中如何将其添加到关于选项卡面板的中心位置?
控件的Location和Anchor属性应允许您动态定位控件。
this.userControl.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)
| System.Windows.Forms.AnchorStyles.Left)
| System.Windows.Forms.AnchorStyles.Right)));
this.userControl.Location = new System.Drawing.Point(108, 85);
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.