Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 448
  • Last Modified:

Load OLE Bitmap From access Databse into a VB6 application

Ok, I'm using a ADOdc object on my form to link to a access database, I in one of my tables there is a field that contains a OLE Bitmap. How can i link it to an picture/image object on my form?
0
MICS
Asked:
MICS
  • 2
1 Solution
 
YaakovSCommented:
Ok in VB The OLE control can display such a field but can not be bound to the ADO control, instead the OLE control must be bound to the intrinsic Data control. Basically put a Data control your form and set its DataBaseName property to the name of your database and its RecordSource property to the table with the pictures. Then put an OLE object on your form and set its DataSource property to the name of your Data Control and its dataField property to the name of the table with the picture. Then write some code to synchronize your Data control to your ADO control. Hope this helps.    
0
 
MICSAuthor Commented:
I had thought about that, But i find it to messy.

If i was to take the ado object using the following code, it woudl return the bitmap image. Is there anyway to then use what it returns (a bitmap file) and assign it to a picturebox, imagebox, or draw command?

myADO.recordset![MybitmapField]
0
 
MICSAuthor Commented:
What is the differenec between the 'Data' object in VB and the 'ADOdc' object???
0
 
CleanupPingCommented:
Hi MICS,
This old question (QID 20565664) needs to be finalized -- accept an answer, split points, or get a refund.  Please see http://www.cityofangels.com/Experts/Closing.htm for information and options.
0

Featured Post

Become an Android App Developer

Ready to kick start your career in 2018? Learn how to build an Android app in January’s Course of the Month and open the door to new opportunities.

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now