Code to "move around" a Form...

B

Bob Barnes

I had Posted this in "Forms coding" 2 days w/ NO answers/

So...
I have a JPG File in an Image on a Tab Control for Data Entry. The JPG
is BIG, so I need Form Scrollbars to navigate while making Data Entry on
textboxes on the JPG..

On www.mapquest.com, you can "move" North, South, East & West to see more of
a geographic area.

What code could be placed behind a Button to "move" a Form
as if using the Vertical & Horizontal Scrollbars??

TIA - Bob
 
S

Stephen Lebans

Create a form containing a single Image control sized to Max
dimensions(22.75in * 22.75in). Insert this form as a SubForm on the
pertinent Page of the Tab control. You can then use the forms built in
vertical and horizontal ScrollBar controls. For a sample MDB see:
http://www.lebans.com/loadjpeggif.htm


The only issue now is the programmatic manipulation of the form's
Scrollbars. In the project above is code to force the ScrollBar back to
its Home position. If you require more direction in how to control the
forms ScrollBars see:
http://www.lebans.com/setgetsb.htm
and
http://www.lebans.com/conformscurcontrol.htm


--

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

Bob Barnes

Stephen...

Thank you - Bob

Stephen Lebans said:
Create a form containing a single Image control sized to Max
dimensions(22.75in * 22.75in). Insert this form as a SubForm on the
pertinent Page of the Tab control. You can then use the forms built in
vertical and horizontal ScrollBar controls. For a sample MDB see:
http://www.lebans.com/loadjpeggif.htm


The only issue now is the programmatic manipulation of the form's
Scrollbars. In the project above is code to force the ScrollBar back to
its Home position. If you require more direction in how to control the
forms ScrollBars see:
http://www.lebans.com/setgetsb.htm
and
http://www.lebans.com/conformscurcontrol.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