Scroll bar positioning...

  • Thread starter Thread starter wwg
  • Start date Start date
W

wwg

How do you position the scroll bars on a form the top and left margins? I
once had code for this but lost it over the years.

Thanks...
--Wesley
 
Thanks Cheryl. Yes, I've checked & searched all the usual spots with no hits
on this specific topic. I'm sure it's buried in one of the modules but not
specifically labeled.

--Wesley
 
Stephen:

Thanks for asking.

Most specifically, I have a form that opens with a long selection
list --it's an index to scanned obits, actually. This form opens with the
vertical (there is no horizontal) scroll bar positioned where it was when
the form was last closed -- often somewhere down the slide leaving some of
the upper part of the list out of sight, off the top of the form. I want to
push the vertical scroll bar back to its uppermost position at form open so
that the list will begin at the beginning.

Thanks for the lead to your "setgetsb" item, I'll check it out. Somehow I
must have overlooked it.

--Wesley
 
I'm not exactly sure how your form is set up, but I use a really simple
method on two of my forms. One is a long option group and the other a tab
form that was hiding the tabs because of the length of the data. I added a
very small (.01x.01) text box, set to transparent, position it in the top
left corner, and in the form open event, add
me!textboxname.setfocus
this puts the vertical scroll bar back to the top. If the user is clicking
on options on the form, this doesn't affect that. However, if you want the
focus to be on a particular field on the form (say for text input) this
wouldn't be a good idea.

HTH
Damon
 
Back
Top