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.
This topic is 4 years and 1 week old and has exceeded the time allowed for comments. Please begin a new topic or use the search feature to find a similar but newer topic.
mqharrington
Posts: 2
Last visit: Fri Nov 10, 2023 12:32 pm

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: 1654
Last visit: Wed Mar 27, 2024 1:54 pm
Answers: 39
Been upvoted: 30 times

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
SAPIEN Technologies, Inc.
This topic is 4 years and 1 week old and has exceeded the time allowed for comments. Please begin a new topic or use the search feature to find a similar but newer topic.