getting a forms top and left location?

  • Thread starter Thread starter kelly d via AccessMonster.com
  • Start date Start date
K

kelly d via AccessMonster.com

How do I get a forms top and left location in Access 2000, cuz AC2000 doesnt
seem to support the .WindowLeft or .WindowTop property

Thanks
Kelly D
 
i'm not sure whats up with AllApi.com but it doesnt seem to be much of an API
resource, so I looked thru this API-Guide app I downloaded and I couldnt seem
to find the right one.
You dont happen to know which API function I should use do you?
 
Stephen,

Love your site and all the neat tools you have built for the community.

I'm trying to do something slightly different. I want to not only record a
forms position, but want to be able to reposition it, but I'm doing it in a
dual monitor environment, and with the AccessWindow hidden. I've looked at
the reference on the Access Web, but have been unable to get it to work.
Additionally, I need a way to record this information when the form has been
moved, but cannot find an event that fires when a form is repositioned on
the screen.

Any help would be greatly appreciated.

Dale
 
Thanks for the link Stephen.
that class mod worked perfect.
for what i needed, i had to use it in conjunction with the location of a
control on the form that I needed the location of and I was having a little
trouble getting an acurate conversion of twips to pixels to get the math to
work out right so I just figured out how many extra pixels i needed to add to
the numbers the class mod gave me and I hard coded those numbers in, but
other than that, that class worked great.
thanks,
Kelly D.
 
No Access event fires in the circumstance that you describe, AFAIK.
You'd probably have to subclass one of the window procedures. Stephen
is the undisputed master of this & will doubtless give you a pointer
(no pun intended!)

HTH,
TC
 
Kelly if you want to open/position a form relative to a control see:
http://www.lebans.com/openform.htm

A97OpenFormRelativeToControl.zip is an MDB showing how to open a second Form
relative to a control on the parent Form.

Version 1.5

Onno Willems added logic to support controls on TAB pages. Fixed logic Bug
for LEFT setting..



Version 1.4

Added logic to handle form's with their Popup property set to True. Added
support for the following positions relative to the specified control.

' 0 = Underneath
' 1 = On Top
' 2 = Right Side
' 3 = Left Side
' 4 = Bottom Right Hand Corner


Version 1.3

First release


--

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

Stephen said:
Kelly if you want to open/position a form relative to a control see:
http://www.lebans.com/openform.htm

A97OpenFormRelativeToControl.zip is an MDB showing how to open a second Form
relative to a control on the parent Form.

Version 1.5

Onno Willems added logic to support controls on TAB pages. Fixed logic Bug
for LEFT setting..

Version 1.4

Added logic to handle form's with their Popup property set to True. Added
support for the following positions relative to the specified control.

' 0 = Underneath
' 1 = On Top
' 2 = Right Side
' 3 = Left Side
' 4 = Bottom Right Hand Corner

Version 1.3

First release
Thanks for the link Stephen.
that class mod worked perfect.
[quoted text clipped - 9 lines]
thanks,
Kelly D.
 
Back
Top