Hi i want to clear change the picture in picture box when data submit succesfull..
but the problem is it throws an exception..the code is

 Image image = Image.FromFile(@"C:\Users\dell\Desktop\Database\Tazeen_Shop\Tazeen_Shop\Images\Blank_face-720571.jpg");
                pictureBox1.BackgroundImage = image ;

i just want to know is this ryt? why it throws an exception and picture dont change....

You can follow two syntax for loading image

//-------- Directly File Location ------------------
pictureBox1.Load(imageFileName);

OR

//-------------- Load an image from image object -----------------
this.pictureBox1.Image = image;
Be a part of the DaniWeb community

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