Topic: Position of Forms

Hello Dmitry,
Hope you are well.  This is my scenario.
I have a simple application where the main form (Form1) is less than full-screen.
When I first run the application, Form 1 is centred on the screen (see dmitry languages 1.jpg). 
I move Form 1 - for example to bottom right of screen. 
I then open Form 2, but this is centred on the ORIGINAL location of Form 1 (see dmitry languages 2.jpg) and not the NEW location of Form 1. 
What I am trying to do is have Form 2 (and all the other forms) centred on the NEW location of Form 1 (see dmitry languages 3.jpg).
Can you suggest a way to achieve this (in effect, centring forms relative to their calling form)?
Thanks, as always, for your help.
Derek.

Post's attachments

Attachment icon languages dmitry.zip 1.76 mb, 476 downloads since 2015-09-26 

Re: Position of Forms

It's not possible in the current version, I can suggest for you an example, how to save and restore position/size of forms
http://myvisualdatabase.com/forum/misc. … download=1

Dmitry.

Re: Position of Forms

Hi Dmity,
I just wasn't sure if there was a very easy way around the problem.   I'll add your code to my script and see how it works - but generally, I'd rather avoid writing to the registry for a non-critical problem - and having to manually move the forms is certainly not a 'show-stopper'.
Thanks for the quick response, as always.
Derek.