Frnds i want to insert image into picture box using the file dialog and that image should get stored into a local folder.....
But the problem is the image is not getting saved n the below line is throwing an exception.
i want to also rename the image with my own personal name.
Please help.......

dim rollno as string
rollno=val(1)
PictureBox1.Image.Save("d:\newfolder\" & rollno&".jpg", System.Drawing.Imaging.ImageFormat.Jpeg)

What kind of error you get???

The error is:
COuld not load image
Error occured in GDI+

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.