Access a2k - Picture Control?

  • Thread starter Thread starter calvinX
  • Start date Start date
C

calvinX

Hi All,

I need to get images from an image control to a picture control. Problem
is...access does not have a picture control and the activex control I am
using requires this or a bitmap handle. I have an imagelist control with
the images I want in them.


Any ideas on how to proceed?

Thanks,

CalvinX
 
It will be much easierfor you to simply load the Images from disk. You
can use the LoadPIcture method as it will return a StdPicture object
which you can use with your ImageList control.
The LoadJpegGif code on my site shows you how to use the LoadPIcture
method to return a StdPicture object.

--

HTH
Stephen Lebans
http://www.lebans.com
Access Code, Tips and Tricks
Please respond only to the newsgroups so everyone can benefit.
 
Hi Stephan,

Thanks for your reply . The problem I am having is that I want to use an
image for a activex control but the control will only accept objects of the
"Picture" variety - if I try and assign the value. I have already put the
images into an image list on the form. What I am looking to do is either

a) use the loadpicture function once in my code to load a standard picture
object that I can reference without the overhead of all the Loadpicture
calls

OR

b) fix the code below because this does work except for no matter what I try
to do to the icon, the background of the icon always ends up being black
when applied to my treeview activeX:

Dim picfc As IPictureDisp
Set picfc = imgLstIcons.ListImages(1).ExtractIcon
Set treecontrol.ItemPicture(indexFC) = picfc


I looked at your code and could not find the LoadPicture method anywhere in
the LoadJpegGif project. I will look again because I think you probably
have something that I can use on your site.


Thanks,

Calvin X
 
Back
Top