Solved

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

Posted on 2014-04-04
3
185 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 54

Accepted Solution

by:
Bill Prew earned 500 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 54

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

Welcome back!  My apologies for taking so long to write part two of this series; it's been a long time coming!  As I promised in Part 1, this article will focus on how to locate those elusive AD properties that you are searching for.  Why is this us…
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…
How to Install VMware Tools in Red Hat Enterprise Linux 6.4 (RHEL 6.4) Step-by-Step Tutorial

713 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