Why doesn't PictureBox clean up immediately?



  • Tell me there's an event that when you press the "PictureBox" button, PictureBox creates a blank drawing sheet. I'm using this code.

    Graphisc graphics1;
    

    graphics1.Clear(pictureBox1.BackColor );

    But he purifies PictureBox only after you started drawing a new picture, not at once. Where did I get a mistake?



  • Maybe that?

    pictureBox1.Invalidate();
    

Log in to reply
 


Suggested Topics

  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2