Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

Any way to ensure the pop up is on top, before other program?

Posted on 2014-04-04
3
Medium Priority
?
191 Views
Last Modified: 2014-04-04
iRetVal = objShell.Popup("Your computer will restart momentarily. ", TIMEOUT, "IT Maintenance", vbExclamation + vbYesNo + vbDefaultButton3)

Open in new window

I notice sometimes it only has a flashing icon at the bottom of my screen where the status icons are and it doesn't display on the scree before other open programs.  Anyway to fix this?  Thank you.
0
Comment
Question by:lapucca
  • 2
3 Comments
 
LVL 59

Accepted Solution

by:
Bill Prew earned 2000 total points
ID: 39979160
Try adding vbSystemModal to the last parm.

iRetVal = objShell.Popup("Your computer will restart momentarily. ", TIMEOUT, "IT Maintenance", vbExclamation + vbYesNo + vbDefaultButton3 + vbSystemModal)

Open in new window

~bp
0
 

Author Closing Comment

by:lapucca
ID: 39979250
Perfect!  Thanks.
0
 
LVL 59

Expert Comment

by:Bill Prew
ID: 39979498
Welcome.

~bp
0

Featured Post

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Over the years I have built up my own little library of code snippets that I refer to when programming or writing a script.  Many of these have come from the web or adaptations from snippets I find on the Web.  Periodically I add to them when I come…
This article is the result of a quest to better understand Task Scheduler 2.0 and all the newer objects available in vbscript in this version over  the limited options we had scripting in Task Scheduler 1.0.  As I started my journey of knowledge I f…
In response to a need for security and privacy, and to continue fostering an environment members can turn to for support, solutions, and education, Experts Exchange has created anonymous question capabilities. This new feature is available to our Pr…
This lesson discusses how to use a Mainform + Subforms in Microsoft Access to find and enter data for payments on orders. The sample data comes from a custom shop that builds and sells movable storage structures that are delivered to your property. …
Suggested Courses

916 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question