- Igor Perisic
- PowerBuilder
- Tuesday, 11 July 2023 07:01 PM UTC
Hi everyone,
I am working on setting a custom position of a Window on startup. First, I tried adjusting the location inside the code in the open event by doing
this.X = 50 and this.Y = 100
but the window location remains unchanged. Then I tried adjusting the X and Y coordinates of my window inside the UI in the 'Other' section, but the window location still remains unchanged.
The reason I would like a custom startup location is because I want to save the X/Y coordinates to a file when a user moves the window or closes the window. Then the next time the application starts up, the application will read these values and essentially open the window in the same location it was at when it last closed.
So, this has me wondering is it possible to adjust the position of a Window?
Thank you
Find Questions by Tag
Helpful?
If a reply or comment is helpful for you, please don’t hesitate to click the Helpful button. This action is further confirmation of their invaluable contribution to the Appeon Community.