how to draw graphics on picture box and delte it

Posted by Shanky11 under Windows Forms on 11/6/2013 | Points: 10 | Views : 872 | Status : [Member] | Replies : 5
i have created a project in that i draw a line on picture box after that i need to delte that drawn line form picture box




Responses

Posted by: vishalneeraj-24503 on: 11/6/2013 [Member] [MVP] Platinum | Points: 25

Up
0
Down
can you please post your queries, so that it would be more useful to understand problem.

Shanky11, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: Rama Sagar on: 11/7/2013 [Member] [MVP] Silver | Points: 25

Up
0
Down
use picboard.Image = nothing

ramasagar

Shanky11, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: vishalneeraj-24503 on: 11/7/2013 [Member] [MVP] Platinum | Points: 25

Up
0
Down
Hi

write PictureBox1.InitialImage = Nothing; in case of C# set null;

or you can also write
PictureBox1.Image = Nothing

please let me know.

Shanky11, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: Shanky11 on: 11/7/2013 [Member] Starter | Points: 25

Up
0
Down
Nothing is happening????

Shanky11, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: Rama Sagar on: 11/7/2013 [Member] [MVP] Silver | Points: 25

Up
0
Down
Try this this will clear the picture box

private void button5_Click(object sender, EventArgs e)
{
pictureBox1.Image = null;
}

ramasagar

Shanky11, if this helps please login to Mark As Answer. | Alert Moderator

Login to post response