Hi

Can you plz help me with removing a image uploaded frm picture box. With a button_click event

Recommended Answers

Wouldn't it just be:

myPictureBox.Image = null;

?

Jump to Post

All 4 Replies

Wouldn't it just be:

myPictureBox.Image = null;

?

Just remember if the image doesn't disappear try

PictureBox.Refesh()

on a delete button click . just find the picture by finding file throurgh server.mappath.
then check if(hasfile)
{

file.delete.
}

and refresh the page.

imageName.Image=null;

Be a part of the DaniWeb community

We're a friendly, industry-focused community of 1.21 million developers, IT pros, digital marketers, and technology enthusiasts learning and sharing knowledge.