We're a community of 1.1M IT Pros here for help, advice, solutions, professional growth and fun. Join us!
1,080,629 Members — Technology Publication meets Social Media
Username:
Password:
Lost login information?
Start New Discussion Reply to this Discussion

Binding Picturebox.Imagelocation from Database field

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..

2
Contributors
2
Replies
1 Day
Discussion Span
6 Months Ago
Last Updated
3
Views
disjes
Newbie Poster
12 posts since Nov 2012
Reputation Points: 0
Solved Threads: 0
Skill Endorsements: 0

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

BhuvanRam
Light Poster
43 posts since Jul 2010
Reputation Points: 10
Solved Threads: 6
Skill Endorsements: 0

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

disjes
Newbie Poster
12 posts since Nov 2012
Reputation Points: 0
Solved Threads: 0
Skill Endorsements: 0

This article has been dead for over three months: Start a new discussion instead

Post: Markdown Syntax: Formatting Help
 
You
 
© 2013 DaniWeb® LLC
Page generated in 0.0537 seconds using 2.64MB