cancel
Showing results for 
Search instead for 
Did you mean: 

How to align User Form in centre

Former Member
0 Kudos

Hi All,

Can anyone please let me know how to set the alignment of User Created Form on SAP B1 9.0. I simply wanted, my form to open in center of SAP screen.

Thank you and Best Regards,

J S L Geeganage

Accepted Solutions (1)

Accepted Solutions (1)

Former Member

Hi Jeewan,

You have to move (sets the properties Form.Left and Form.Top) according to the size of the Application.Desktop properties.

Short math are:

Form.Left = (Application.Desktop.Width - Form.Width) / 2

Form.Top = (Application.Desktop.Height - Form.Height) / 2

Regards,

Eric

Former Member
0 Kudos

Hi Eric,


It works after I added those lines under 'Form_VisibleAfter' event.

Thank you very much.

Best Regards,
J S L Geeganage

Answers (0)