设置pictureBox的边框颜色

private void pictureBox2_Paint(object sender, PaintEventArgs e)
{
PictureBox p = (PictureBox)sender;
Pen pp = new Pen(Color.Red);
e.Graphics.DrawRectangle(pp, e.ClipRectangle.X, e.ClipRectangle.Y,
e.ClipRectangle.X + e.ClipRectangle.Width - ,
e.ClipRectangle.Y + e.ClipRectangle.Height - ); }
上一篇:Yosemite系统怎么录制 iOS8设备屏幕


下一篇:To Learn