如何更改C#的表格边框颜色? [英] How to change the form border color c#?
问题描述
我想更改窗口表单的边框颜色(带有表单标题的边框).我在 codeplex 中找到的示例太多且令人困惑.有什么可以帮助我做些简单的事情吗?
I would like to change window form border color (the border with the form title). The example I found in codeplex is too much and confusing. Can any help me on something simpler?
推荐答案
不幸的是,由于表单边框是由操作系统绘制的,因此此是一项复杂的任务.没有解决的办法.
Unfortunately, since the form border is drawn by the Operating System, this is a complicated task. There is no real way around that.
请勿在下面的CodePlex页面上单击ProjectDistributor链接
Do NOT click the ProjectDistributor link on the CodePlex page below
不过,用于绘制自定义边框的CodePlex项目使此操作非常容易.只需使用该项目中的SkinnedForm而不是标准Form来构建表单,它就可以工作-您实际上不需要在代码中做任何不同的事情.
The CodePlex Project for Drawing Custom Borders makes this very easy, though. Just build the form using SkinnedForm from that project instead of a standard Form, and it should work - you really don't need to do anything different in your code.
这篇关于如何更改C#的表格边框颜色?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!