mloucel
Member
- Local time
- Today, 02:11
- Joined
- Aug 5, 2020
- Messages
- 356
Hello ALL, me again..
Thru trials and errors and a bit of Help from Richard Rost, I have been able to ALMOST place the forms to a specific location I need them to appear, nothing major but it does help a lot for different monitors without complicated coding, here is my dilemma:
in order to find the current position, I use a little button in each form, which is never left for the EU, just for me to test, then I use the following code:
Problem I have found is that the numbers given are absolutely FALSE, at least gave me an idea of where is more or less located the form, then I adjust.
EX:
I move the form to the position I need it and press the FT button
I got 6285
Thru trials and errors and a bit of Help from Richard Rost, I have been able to ALMOST place the forms to a specific location I need them to appear, nothing major but it does help a lot for different monitors without complicated coding, here is my dilemma:
in order to find the current position, I use a little button in each form, which is never left for the EU, just for me to test, then I use the following code:
Code:
Private Sub FindTwips_Click()
With Forms(0)
MsgBox "This form is " & .WindowLeft _
& " twips from the left edge of the Access window and " _
& .WindowTop _
& " twips from the top edge of the Access window."
End With
End Sub
Problem I have found is that the numbers given are absolutely FALSE, at least gave me an idea of where is more or less located the form, then I adjust.
EX:
I move the form to the position I need it and press the FT button
I got 6285
and 1755{Top]
change the code adjusting to those numbers but is way off from where I need the form, so I manually adjust the twips until I get it right which happens to be:
10000 {Left] and 5000 [Top}
funny part is that when I click the FT button, I got 6289 and 1755,
if I change to those numbers then it goes to a position I do not want, then use my adjusted numbers and it works ...
So why Access is giving me those numbers and not the position I want 10000 [L] and 5000 [T]
I am not sure if I made myself clear
Thanks for any Help is not a life and death situation JUST SIMPLY CURIOSITY, but if you guys know a better way it will be appreciated.
Maurice.
change the code adjusting to those numbers but is way off from where I need the form, so I manually adjust the twips until I get it right which happens to be:
10000 {Left] and 5000 [Top}
funny part is that when I click the FT button, I got 6289 and 1755,
if I change to those numbers then it goes to a position I do not want, then use my adjusted numbers and it works ...
So why Access is giving me those numbers and not the position I want 10000 [L] and 5000 [T]
I am not sure if I made myself clear
Thanks for any Help is not a life and death situation JUST SIMPLY CURIOSITY, but if you guys know a better way it will be appreciated.
Maurice.