锚定不起作用 [英] anchoring won't work
问题描述
您好,
我正在编写Windows窗体应用程序。我有两个标题为"过滤选项"的组框。和"运行"。它们与左侧的"过滤器选项"和"右侧的运行"水平对齐。我在锚定Run
组框时遇到问题。如果我将其设置为左侧锚点,则左边缘会正确锚定到"过滤器选项"组框的右边缘,但右侧的所有空白区域都是如此。如果我将其设置为锚定右侧,则右边缘正确锚定到应用程序表单的右边缘
,但是它本身与"过滤器选项"组框之间存在所有这些空白区域。如果我将其设置为左右锚定,则左边缘已正确锚定,但右边缘似乎偏离应用程序窗体的边缘。事实上,
里面的按钮消失了,我猜他们已经向右移动了右边缘。
I'm programming a Windows Forms application. I have two group boxes with the headings "Filter Options" and "Run". They are horizontally aligned with Filter Options on the left and Run on the right. I'm having problems anchoring the Run group box. If I set it to anchor left, the left edge is properly anchored onto the right edge of the Filter Options group box, but there's all this empty space to its right. If I set it to anchor right, the right edge is properly anchored to the right edge of the application form, but there's all this empty space between itself and the Filter Options group box. If I set it to anchor left AND right, the left edge is properly anchored but the right edge seems to go off the edge of the application form. In fact, the buttons inside it disappear and I'm guessing they've moved off to the right with the right edge.
为什么左右两边都要固定它这个?控件不应拉伸应用程序的边缘
Why would anchoring it both left and right do this? Controls shouldn't stretch off the edge of the application
推荐答案
您好gib898,
Hi gib898,
你如何设计你的表格?
你能否分享一些可以重现这个问题的快捷方式或样本,然后我们可以帮助你。
Could you share some shortcuts or samples which can reproduce this issue and then we could help you better.
问候,
Youjun Tang
Regards,
Youjun Tang
这篇关于锚定不起作用的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!