简体   繁体   English

如何更改Winform TabControl的位置

[英]How to change Winform TabControl location

I need to change an already made winform application. 我需要更改一个已经制成的winform应用程序。 This application has a tab control statically made with the designer. 此应用程序具有由设计人员静态制作的选项卡控件。 This functions as the main input/output for the app and is located at the very top of the windows. 该功能用作应用程序的主要输入/输出,位于窗口的顶部。

I want to lower it a bit (the upper left corner) and add a MenuStrip above the tab control. 我想降低它一点(左上角),并在选项卡控件上方添加一个MenuStrip。

When I try to change the location property in the designer window (currently X and Y are set to 0), It just won't change the values I enter and change it automatically back to 0. 当我尝试在设计器窗口中更改location属性(当前X和Y设置为0)时,它只是不会更改我输入的值并自动将其更改回0。

How can I change the tab's location so I can add a menu strip above it? 如何更改标签的位置,以便可以在标签上方添加菜单栏?

As you said you like to add MenuStrip to top but TabControl accommodates top position. 如您所说,您希望将MenuStrip添加到顶部,但TabControl位于顶部。

It doesn't matter when you add a MenuStrip it always goes to top. 添加MenuStrip并不重要,它总是MenuStrip最前面。 Try it. 试试吧。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM