stay on top

This forum can be browsed by the general public. Posting is limited to current SAPIEN license holders with active maintenance and does not offer a response time guarantee.
Forum rules
DO NOT POST LICENSE NUMBERS, ACTIVATION KEYS OR ANY OTHER LICENSING INFORMATION IN THIS FORUM.
Only the original author and our tech personnel can reply to a topic that is created in this forum. If you find a topic that relates to an issue you are having, please create a new topic and reference the other in your post.

Any code longer than three lines should be added as code using the 'Select Code' dropdown menu or attached as a file.
mqharrington
Posts: 1
Meble kuchenne na zamówienie - na wymiar - Wrocław
Joined: Thu Feb 20, 2020 10:40 am

stay on top

Post by mqharrington »

Product: PowerShell Studio 2020 (64 Bit)
Build: v5.7.172
OS: Windows 10 Pro (64 Bit)
Build: v10.0.18362.0

I have a form that has been compiled into an .EXE. when I run the .EXE it runs but the dialog is always hidden behind other windows. How do I make it always run on top of all windows?

Thanks.

User avatar
brittneyr
Site Admin
Posts: 473
Joined: Thu Jun 01, 2017 7:20 am

Re: stay on top

Post by brittneyr »

If by windows, you mean other forms, you can set the property TopMost = $true. That will make the form appear above all other forms that don't also have this property set. You can also try changing the StartPosition property.

Is this also the case when you run the dialog before it was packaged to an exe?
Brittney Ryn
SAPIEN Technologies, Inc.