Positioning a form before Show()

Oct 02
2012

It was driving me crazy: I was not able to position a form before showing it. It was shown every time the height of my taskbar below the desired vertical position.

The solution was very simple: assign FormStartPosition.Manual to the :StartPosition member of the form:

self:StartPosition := FormStartPosition.Manual
self:Size := Size{ oDesktop:Width, oDesktop:Height }
self:Location := Point{ nX, nY }

Comments are closed.