PC Review


Reply
Thread Tools Rate Thread

Code to "move around" a Form...

 
 
=?Utf-8?B?Qm9iIEJhcm5lcw==?=
Guest
Posts: n/a
 
      10th Jun 2005
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

 
Reply With Quote
 
 
 
 
Stephen Lebans
Guest
Posts: n/a
 
      12th Jun 2005
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.


"Bob Barnes" <(E-Mail Removed)> wrote in message
news:145FA0DC-15A7-4359-BECC-(E-Mail Removed)...
> 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
>


 
Reply With Quote
 
=?Utf-8?B?Qm9iIEJhcm5lcw==?=
Guest
Posts: n/a
 
      12th Jun 2005
Stephen...

Thank you - Bob

"Stephen Lebans" wrote:

> 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.
>
>
> "Bob Barnes" <(E-Mail Removed)> wrote in message
> news:145FA0DC-15A7-4359-BECC-(E-Mail Removed)...
> > 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
> >

>
>

 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Field Names: "LongName", "ShortName", "Code", "Description","Comments" PeteCresswell Microsoft Access 2 25th Feb 2009 11:41 PM
How to rename "button1" in Form source code to "but_change_set" ? Ole Mercano Microsoft C# .NET 2 17th May 2007 06:13 PM
Re: Help with code: "On Open" or "Form Load" Albert D. Kallal Microsoft Access Form Coding 0 8th Sep 2004 07:41 PM
<FORM METHOD="post" onSubmit="return fieldcheck()" name="orientation" action="http://ws-kitty.BU.edu/AT/survey/orientation/script/write.asp" language="JavaScript"> Joeyej Microsoft ASP .NET 0 4th Jun 2004 08:55 PM
Allocating "Don't Move or size with cells" property in code =?Utf-8?B?SmltIE1jTGVvZA==?= Microsoft Excel Programming 1 19th Apr 2004 10:57 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 01:14 AM.