如何使用Windows应用程序更改表单边框颜色 [英] How to change the Form Border Color using Windows Application
本文介绍了如何使用Windows应用程序更改表单边框颜色的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
嗨
如何更改表格边框颜色。是否有可能。
Hi
How to change Form Border Color.It is possible or not.
推荐答案
该问题的另一个选择是
1 - 首先将 Form 属性 formBorderStyle 更改为 none 。
2 - 使用面板并设置为表单内容的内容,并更改表单 backgroundcolor 红色或其他您想要用于边框的颜色。
3 - 在左上角添加按钮以关闭for
4 - make form draggable
我正确地使用了这个技巧
Another option for that problem is
1 - firstly change Form property formBorderStyle to none.
2 - Use panel and set as content of form content and change form backgroundcolor red or other color which you want to use for your border.
3 - Add a button on top-left side of for closing the for
4 - make form draggable
I had using that trick properly
当然,这并不简单,而且可能比它更麻烦值得 - 边界在应用程序的控制范围之外(为了保持一致的外观和感觉它是操作系统的一部分而不是应用程序),你唯一的直接控制是删除边框并自己绘制 - 但是会删除调整表单大小的能力。
我见过一个样本: http://customerborderform.codeplex.com/ [ ^ ] - 但我不知道你需要做多少工作才能让它正常工作在你的代码中。
It isn''t simple, certainly, and is probably more trouble than it''s worth - the border is outside the app''s control (to maintain a consistent look and feel it is part of the OS rather than the app) and the only direct control you have is to remove the border and draw it yourself - that would remove the ability to resize the form however.
There is one sample I have seen: http://customerborderform.codeplex.com/[^] - but I have no idea how much work you are going to have to do to get it working in your code.
这篇关于如何使用Windows应用程序更改表单边框颜色的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文