Hi,
I have drawn the rectangle using picture box paint. Now I like to edit
the drawn rectangle (Like to increase or decrease the length of the
drawn rectangle). how can i do this.
for code refer below link:
http://www.c-sharpcorner.com/Forums/ShowMessages.aspx?ThreadID=87153
Modification on the drawn rectangle in paint event handeler...
2 Answers
Know the answer? Post it. Somebody with the same question will find it here.
Abhimanyu K VatsaRank #14 · 51.6K pointsPosted May 31, 2010, 2:22 AM EDT
I hope I am wright.
Nivas Sadashivam8 pointsPosted May 31, 2010, 3:47 AM EDT
private void pictureBox1_MouseDown(object sender, MouseEventArgs e)
{
if (mybitmap == null)
{
mybitmap = new Bitmap(sz.Width, sz.Height);
}
rect[count] = new Rectangle(e.X, e.Y, 0, 0);
this.Invalidate();
error as "Object reference not set to an instance of an object." (Null reference Exception was unhandled.)
how to solve this one....