Discussion Locked

How to Bind a Picture Box control to a A

0 helpful
5 replies
Closed to new repliesThis discussion is closed. It stays readable, but it takes no new replies.

How can i bind a picture box control to
a adodb recordset. I have a sql server
table having a image column i need to bind this to a picture box conrtol and i am not
using ado control insted using ado recordset.
I tried it by assingning datafield , datasourse and datamember but it shows error
unable to bind datafield or datamember. What should i need to do
Thank you
Sreekumar

5 replies

by todd parker

Should we assume you are trying this in VB?

If so - I would suggest you build your forms with the 'Add-in' Visual Data Manager. That will make it easier for you by assigning your Datasource and Datafield automatically.

How was your recordset created? Manually writing an ADO connection script? A Data Connection? Did you include a Data Control on your form? Is this the only field on your form? Are other fields working properly?

Good luck bud,
-Me

by cedric king

I assumed you want to display the correct picture whenever you moves through the recordset. The value in the database would be a path. To the recordset, it would be a string and being a string, there would be no error. You can just set the Picture Box path to the value from the database whenever the user moves through the recordset. It shouldn't be a problem.

This discussion is closed to new replies.