C# WinForms SplitContainer 面板工具栏
WinForms .NET 6.03 (C#)
在一个具有传统菜单和工具栏停靠在顶部的窗体中...
我在左侧面板中有一个拆分容器(垂直拆分器)我有一个停靠在顶部的工具栏和一个用户控件填充Panel1 位于面板工具栏下方。
当我调整面板大小时,工具栏消失,用户控件在面板中向上移动。
这在 .NET 4.6 中不是问题。我现在才在 .NET 6.03 中构建时才看到它
有修复吗?
WinForms .NET 6.03 (C#)
In a Form that has a traditional menu and toolbar docked across the top...
I have a split container (vertical splitter) in the left panel I have a toolbar docked to the top and a user control filling Panel1 below the panel's toolbar.
When I resize the panel, the toolbar disappears and the user control shifts up in the panel.
This was not a problem in .NET 4.6. I'm only seeing it now that I'm building in .NET 6.03
Is there a fix?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
事实证明,这是一个 z 顺序问题。不知何故,在执行过程中,工具条失去了有关对接的最高条件。
It turned out that this was a z-order problem. Somehow during execution, the toolstrip was losing it's topmost condition regarding docking.
请像这样尝试:
不要忘记右键单击项目并选择同步命名空间以根据您的项目更新命名空间。
Try like this:
Don't forget to right-click on the Project and select Sync Namespace to update the namespace according to your project.
Result
1. Normal
2. Maximized