E
emferrari
Hi all
I have a picturebox which I will have a image loaded to it and some
text fields with coordinates. I am drawing a rectangle according to the
coordinates in the text fields.
Rectangle r = new Rectangle(int.Parse(this.txt_Left.Text),
int.Parse(this.txt_Top.Text), ControlWidth, ControlHeight);
pictureBox2.CreateGraphics().DrawRectangle(new Pen(Color.Red, 1), r);
This is working fine, draw the red rectangle. But I want to clear the
rectangle when I change the coordinates. Does somebody knows how to do
that?
Thanks
I have a picturebox which I will have a image loaded to it and some
text fields with coordinates. I am drawing a rectangle according to the
coordinates in the text fields.
Rectangle r = new Rectangle(int.Parse(this.txt_Left.Text),
int.Parse(this.txt_Top.Text), ControlWidth, ControlHeight);
pictureBox2.CreateGraphics().DrawRectangle(new Pen(Color.Red, 1), r);
This is working fine, draw the red rectangle. But I want to clear the
rectangle when I change the coordinates. Does somebody knows how to do
that?
Thanks