在winforms中删除文本框的边框(c#或vb.net) [英] delete border of textbox in winforms (c# or vb.net)

查看:178
本文介绍了在winforms中删除文本框的边框(c#或vb.net)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

Hi
如果TextBox的BorderStyle属性设置为None,则还会显示边框。

在边框不显示之前我应该​​做什么?





非常感谢

解决方案

只需将BorderStyle设置为None - 边框只会在设计师中展示,而不是在执行版本中展示,只在设计师中展示它才能看到它的位置!



除此之外,唯一的其他文本框和背景之间的差异将是文本区域颜色,默认为系统范围内的值集。您可以通过将BackgroundColor从Window设置为Control来覆盖它,但是然后用户将无法看到他 可以 在框中输入数据。

BackColor 属性设置为与 Form.BackColor 相同的值。

Hi If "BorderStyle" property of a TextBox be set to "None", also border would be shown.
What I should do until border not be shown?


Thanks very much

解决方案

Just set the BorderStyle to None - a border will only be shown in the designer, not in the executing version, and in the designer only so you can see where it is!

Other than that, the only other difference between the textbox and the background will be the text area colour, which defaults to the value set system-wide. You can override it by setting the BackgroundColor from Window to Control, but then the user won't be able to see that he could enter data in the box.


Set the BackColor property to the same value as your Form.BackColor.


这篇关于在winforms中删除文本框的边框(c#或vb.net)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆