Solved

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

Posted on 2014-04-04
3
184 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 53

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 53

Expert Comment

by:Bill Prew
ID: 39979498
Welcome.

~bp
0

Featured Post

Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

I met Paul Devereux (@pdevereux) today when I responded to his tweet asking “Anybody know how to automate adding files from disk to a folder in #outlook  ?”.  I replied back and told Paul that using automation, in this case scripting, to add files t…
If you need to start windows update installation remotely or as a scheduled task you will find this very helpful.
This video shows how to quickly and easily add an email signature for all users on Exchange 2016. The resulting signature is applied on a server level by Exchange Online. The email signature template has been downloaded from: www.mail-signatures…
Although Jacob Bernoulli (1654-1705) has been credited as the creator of "Binomial Distribution Table", Gottfried Leibniz (1646-1716) did his dissertation on the subject in 1666; Leibniz you may recall is the co-inventor of "Calculus" and beat Isaac…

839 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