Hi, I have a field in my table called foto it saves the url on disk of a picture and i'm trying to bind it like this..

pictureBox2.DataBindings.Add("ImageLocation", tabla.DefaultView, "foto");

tabla is a datatable..

the field saves an url like this: C:\Users\Public\Pictures\Sample Pictures\Hortensias.jpg

but it doesn't work, picturebox show a white image with a red x in the middle..

thanks..

Check in the Chrome "Inspect Element" , whether your picture URL , is showing the correct path or not

I forgot, i'm developing a winform app, and the picture is on disk.. thanks Bhuvanram

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.