惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

让小产品的独立变现更简单 - ezindie.com
让小产品的独立变现更简单 - ezindie.com
B
Blog
Jina AI
Jina AI
N
Netflix TechBlog - Medium
Cyber Security Advisories - MS-ISAC
Cyber Security Advisories - MS-ISAC
博客园_首页
Hugging Face - Blog
Hugging Face - Blog
博客园 - 聂微东
美团技术团队
Google DeepMind News
Google DeepMind News
WordPress大学
WordPress大学
阮一峰的网络日志
阮一峰的网络日志
U
Unit 42
The Cloudflare Blog
V
V2EX
OSCHINA 社区最新新闻
OSCHINA 社区最新新闻
小众软件
小众软件
罗磊的独立博客
Microsoft Security Blog
Microsoft Security Blog
Apple Machine Learning Research
Apple Machine Learning Research
I
InfoQ
GbyAI
GbyAI
腾讯CDC
MongoDB | Blog
MongoDB | Blog

博客园 - XiaoK

在centOS linux上使用chrony搭建NTP时间同步服务器 centOS端口映射命令 java gc日志的基本知识 定时清除linux内存buff/cache缓存 将libstdc++.so.6升级到libstdc++.so.6.0.29 修改rabbitMQ3.8默认端口号 一个项目用的linunx后台服务配置 nginx负载均衡的配置 linux配置nginx开机启动 vi编辑器常用命令 解决setroubleshootd进程占用内存、cpu高 centOS linux常用操作命令 Internet Explorer 安全区域注册表项说明 获取WPF控件句柄的方法 当远程访问mysql时,mysql会解析域名,会导致访问速度很慢 创建鼠标指针图标 [转]c#消息处理 OpenFileDialog组件会更改应用程序默认目录问题 winForm中将控件背景设为透明色
c#实现渐变色
XiaoK · 2008-12-11 · via 博客园 - XiaoK

LinearGradientBrush brush = new LinearGradientBrush(this.ClientRectangle,
                Color.FromKnownColor(KnownColor.Control),Color.FromKnownColor(KnownColor.ControlDark) , LinearGradientMode.Horizontal);

            System.Drawing.SolidBrush b = new SolidBrush(Color.Red);

            Graphics g = this.CreateGraphics();
            g.FillRectangle(brush, this.ClientRectangle);
            g.DrawString("渐变了啊", this.Font, b, 5, 2);