Form changes position when I click inside it (1 Viewer)

Abes

New member
Local time
Today, 15:44
Joined
Jul 2, 2021
Messages
21
Good Day All - I have got a parent-child form setup.The parent form is positioned above the child form by calling a macro with a "MoveSize" in the on load event of this form. When viewing the form it is positioned correctly at the top left as per the "MoveSize" position.
If I click anywhere within the white space of this form (i.e. not on a control) it immediately jumps to the center of the screen and has additional white space on the right and bottom of the form, making it much larger than as per the "MoveSize" sizing.

Properties that may matter are:
click event = empty
popup = Yes
Modal = No
auto center = No
auto resize = No
fit to screen = No

What can be the reason for this behavior?
 

arnelgp

..forever waiting... waiting for jellybean!
Local time
Today, 21:44
Joined
May 7, 2009
Messages
19,169
on MoveSize function, did you specify just the Right and Down parameters?
 

Abes

New member
Local time
Today, 15:44
Joined
Jul 2, 2021
Messages
21
Yes
 

arnelgp

..forever waiting... waiting for jellybean!
Local time
Today, 21:44
Joined
May 7, 2009
Messages
19,169
sorry, can't tell.
but i've tested with a form with only Detail section on it, it does not resize
and repositioned when clicked.
 

Abes

New member
Local time
Today, 15:44
Joined
Jul 2, 2021
Messages
21
Found it! I have been looking at the form's click event which has nothing in it, but the detail section had a click event which had movesize code in it, taking the form to a position which I must have entered during the initial stages of fiddling with it whilst trying to position it correctly.
Nevertheless, thanks for trying to assist and apologies for me being such a bird brain
 

Users who are viewing this thread

Top Bottom