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 - 1,
e.ClipRectangle.Y + e.ClipRectangle.Height - 1);

}

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2021-12-04
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2021-11-25
  • 2022-12-23
  • 2021-12-26
  • 2022-12-23
相关资源
相似解决方案