using MS Forms Image object with Access

E

Eric

I have a class that has a data member object of Image, which requires a
reference to MS Forms 2.0 Library. I'd like to use this class as is with
Access as well, but Access doesn't seem to make that Lib available as
reference (which makes sense since it has it's own Forms).

I've managed to reference the system.drawing.dll, which lets me keep the
class member around without a compile error, but it doesn't let me actually
use it without an error.

Thanks,
Eric
 
S

Sylvain Lafontaine

You have just make a hit on the big difference between Access and other
Windows applications like VB or VB programs.

Usually, on most windows applications, every window, button, checkbox,
lable, etc., on the screen is a small Windows' window with its own handle.
But to make things speedier, Access doesn't proceed in this way and won't
create a distinct window object for each rectangular object and instead will
only draw its graphical representation on the screen. This make things like
scrolling much more quickier but with the sad effect that many ActiveX
controls won't work under Access.

Unlike with VB, with Access, you can only use visual controls that have been
specifically adapted to work with it.
 
S

Sylvain Lafontaine

I forgot to say that some controls will work with Access only on static
forms and not on continuous forms.
 
E

Eric

Is there a way to know if the active application is Acess? If so I can just
skip use of the Image. Or better yet, is there an Image object that works
with Access and other Office apps (I suspect not by your last answer).

Thanks, Eric
 
S

Sylvain Lafontaine

Sorry for the long time before my answer; I've made a quick search on Google
but nothing usefull came out at first. I think that the problem is that now
everyone are leaving the field of developing ActiveX controls and going into
the .NET stuff.

Maybe DBPix ( http://www.ammara.com/support/kb/index.html ) can be your
ticket, however this control only support raw binary images, not the OLE
Object Images usually used by Access. (Look at the FAQ #24 for DBPix for
more informations on this.)
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top