I have a picturebox object, I want to assign image to that picturebox, the problem that the image is located in my server, I got a driver mapped for images folder (Z: driver), so I was trying:
string imgPath = System.IO.Path.Combine("Z:\\",row.Cells["ImgPath"].Value.ToString());
picturebox.Image = System.Drawing.Image.FromFile(imgPath, true);
// this code is not working, null is returned from Image.FromFile method
but previous code is not working, null is returned from Image.FromFile method.
I tried the UNC path: \\192.168.1.161\d$\Product
but also that is not working
so any idea what to do?