Maximising Images on Forms

D

Dianne

I am working on a database that works with linked /
external images.

I have a requirement to click on the image and have it
displayed full screen.

Does anyone know what the best way of doing this is?
 
S

Stephen Lebans

Create a second form containing only an Image control sized to the max
dimensions of your largest image. Keep it open by hidden while your app
is in use.
On the click event of the smaller Image control on the original form do
something like:

Forms!NameOfTheHiddenForm.NameOfImageControl.PictureData =
Me.NameOfSmallImageControl.Picturedata
Forms!NameOfTheHiddenForm.NameOfImageControl. Width = =
Me.NameOfSmallImageControl.ImageWidth
Forms!NameOfTheHiddenForm.NameOfImageControl. Height = =
Me.NameOfSmallImageControl.ImageHeight
Forms!NameOfTheHiddenForm.Visible = True

To allow for Images that may be larger than the current screen
dimensions you may want to consider placing the Image control on a
SubForm so that the subform's ScrollBars can be used to view the entire
Image as I have done here:
http://www.lebans.com/loadjpeggif.htm

--

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

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