如题!要求颜色是由四周向中间渐变的!感谢!
解决方案 »
- SplitterContainer的诡异问题
- WinForm下,DataGridView控件问题
- webbrowser控件访问xml文件,显示正常,但为什么用访问webbrowser的documentText属性却不是xml文件的内容?
- keydown事件和keypress事件的区别我很迷惑,请高手帮助
- NetAdvantage 2008 v1.0的效率问题.
- 关于类型转换
- 急需.net初学者源代码
- 好心的人帮帮忙啊!
- MFC AppWizard[exe]的主函数从哪里找呀?
- 类似下面连接文章中(vb.net),继承的方法被执行两次的c#解决办法是什么?
- 求助 mshtml IHTMLElement 等指针问题。。。
- 大哥大姐,谁能具体解释一下下面两句话的意思
在这里找找,可能对你有帮助
private void Form1_Paint(object sender, PaintEventArgs e)
{
GraphicsPath path = new GraphicsPath();
path.AddEllipse(this.ClientRectangle);
PathGradientBrush pb = new PathGradientBrush(path);
pb.CenterColor = Color.Red;
Color[] colors = { Color.Brown};
pb.SurroundColors = colors;
e.Graphics.FillPath(pb, path);
}