Solved

How can I use a different icon?

Posted on 2014-04-04
2
174 Views
Last Modified: 2014-04-07
Any way to specify an image to use as icon for this?  Right now it shows as some icon on the status bar but don't know where that comes from.

Also, I want to set the No button as the default button but when it's displayed it selected the Yes button.  I thought button3 selects the one on the right of the box.

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

Thank you.
0
Comment
Question by:lapucca
2 Comments
 
LVL 142

Accepted Solution

by:
Guy Hengel [angelIII / a3] earned 500 total points
ID: 39979909
for the icons, you don't have a real choice:
http://technet.microsoft.com/en-us/library/ee156593.aspx

vbDefaultButton3 actually refers to the third button, if any; otherwise to the leftmost.
so, if you have only 2 buttons, you need to specify vbDefaultButton2 instead
0
 

Author Closing Comment

by:lapucca
ID: 39983549
thank you.
0

Featured Post

Do You Know the 4 Main Threat Actor Types?

Do you know the main threat actor types? Most attackers fall into one of four categories, each with their own favored tactics, techniques, and procedures.

Join & Write a Comment

Recently I finished a vbscript that I thought I'd share.  It uses a text file with a list of server names to loop through and get various status reports, then writes them all into an Excel file.  Originally it was put together for our Altiris server…
Script to copy or move mouse-selected collection of files plus targets referenced by shortcuts (.lnk) The purpose of this article is to help illuminate the real challenges and options available (where they may exist) for utilizing simple scriptin…
Here's a very brief overview of the methods PRTG Network Monitor (https://www.paessler.com/prtg) offers for monitoring bandwidth, to help you decide which methods you´d like to investigate in more detail.  The methods are covered in more detail in o…
This video gives you a great overview about bandwidth monitoring with SNMP and WMI with our network monitoring solution PRTG Network Monitor (https://www.paessler.com/prtg). If you're looking for how to monitor bandwidth using netflow or packet s…

759 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

Need Help in Real-Time?

Connect with top rated Experts

13 Experts available now in Live!

Get 1:1 Help Now