停靠的多行文本框被 StatusStrip 覆盖
我有一个表单,其中多行文本框和状态条都停靠在表单底部。
文本框必须停靠,以便在调整整个表单大小时可以调整其大小。
问题在于状态条覆盖了覆盖滚动条向下箭头底部的文本框。
有没有办法使文本框停靠在底部,同时仍然显示在状态栏上方?
问候。
I am having a form in which I have multiple line textbox and status strip both docked to the bottom of the form.
Textbox must be docked so it can be resizable while the whole form is resizable.
The problem is that the status strip is covering the textbox on the bottom of the from covering scroll bars down arrow.
Is there any way to make textbox docked to the bottom while still displaying above the status strip?
Regards.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
右键单击文本框,然后单击
置于前面
(如果还有其他控件,则单击状态栏和发送到后面
)。停靠基于窗体上控件的 ZOrder,最前面的是最里面的。Right click the text box and click
Bring to front
(Or the Statusbar andSend to back
if there are other controls). The docking is based on the ZOrder of the controls on the form with the front most being the inner most.您还可以使用 ToolStripContainer,它将关注您想要执行的操作,这通常是放置状态条等工具条的有效方法。
You could also use a ToolStripContainer, which will take care of what you are trying to do and is generally an efficient way of placing toolstrips such as the statusstrip.
或者,您可以使用 Anchor 属性在父级调整大小时调整控件的大小。默认情况下它设置为左上角。如果启用底部,文本框将随着表单大小的变化而缩小或扩大。
Or you can use Anchor property to resize control when parent resize. By default it set to top left corner. If you enable the bottom than textbox will be shrink or expand as form change size.