如题。
解决方案 »
- 变量名含全角空格的编译问题
- wpf浏览器应用程序访问程序文件
- 怎么在Div里添加 删除多个.net控件
- 期望高手来指点:建立一个接受器,采集指定的一台主机上传来的数据,并且数据量的峰值可能很大,如何做。最好用C#
- 'System.NullReferenceException' occurred in system.windows.forms.dll
- 我在下面的代码中实例令一个Page页面结果报System.StackOverflowException异常。请高手帮忙解决下!谢谢!~
- 单独建的一个表(不属于任何ds)绑定到某个datagrid,请问在datagrid里修改数据後会对table里的数据有影响吗?
- 关于关闭按钮。
- 太长的Datagrid能不能让它换行。???
- 胸无大志的程序员!!!
- 问一个查询的问题,谢谢
- WINDOWS程序设计 这本书还适于 C#吗?
{
GraphicsPath rectPath = new GraphicsPath(); // Add the line on the top:
rectPath.AddLine( rect.Left + radius, rect.Top,
rect.Right - radius, rect.Top );
// Add the arc at the top right corner:
rectPath.AddArc( rect.Right - 2 * radius, rect.Top,
radius * 2, radius * 2 ,
270, 90 );
// Line down the right:
rectPath.AddLine( rect.Right, rect.Top + radius,
rect.Right, rect.Bottom - 10 );
// Bottom Right quarter circle:
rectPath.AddArc( rect.Right - radius * 2, rect.Bottom - radius * 2,
radius * 2, radius * 2,
0, 90 );
// bottom line:
rectPath.AddLine( rect.Right - 2 * radius, rect.Bottom ,
rect.Left + radius, rect.Bottom );
// Bottom left quarter circle:
rectPath.AddArc( rect.Left, rect.Bottom - 2 * radius,
2 * radius, 2 * radius, 90, 90 );
// Up the left side:
rectPath.AddLine( rect.Left, rect.Bottom - radius,
rect.Left, rect.Top + radius );
// Upper left arc:
rectPath.AddArc( rect.Left, rect.Top,
2 * radius, 2 * radius, 180, 90 ); return rectPath;
}
{
//填充大的圆角矩形框
Graphics g = pevent.Graphics;
g.FillRectangle( Brushes.Lime, 0, 0, this.ClientSize.Width, this.ClientSize.Height ); System.Drawing.Drawing2D.GraphicsPath framePath = Utils.CreateRoundedRectPath(this.ClientRectangle, 5 ); using ( System.Drawing.Drawing2D.LinearGradientBrush frameLgb =
new System.Drawing.Drawing2D.LinearGradientBrush( this.ClientRectangle,
Color.SteelBlue, Color.LightBlue, System.Drawing.Drawing2D.LinearGradientMode.Vertical ) )
{
g.FillPath( frameLgb, framePath );
} //填充小的圆角矩形框:文本区
Rectangle textAreaRectangle = new Rectangle(this.ClientRectangle.Location.X + 5,
this.ClientRectangle.Location.Y + 5,this.ClientRectangle.Size.Width - 10,
this.ClientRectangle.Size.Height - 10); System.Drawing.Drawing2D.GraphicsPath textAreaPath = Utils.CreateRoundedRectPath(textAreaRectangle,5);
g.FillPath( Brushes.White, textAreaPath );
}