Learn how to a build a cloud-first strategyRegister Now

x
?
Solved

How can I use a different icon?

Posted on 2014-04-04
2
Medium Priority
?
181 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 143

Accepted Solution

by:
Guy Hengel [angelIII / a3] earned 2000 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

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

In this article we want to have a look at the directory attributes which are used by Microsoft to store the so called Security Identifiers (SID). These SIDs plays an important role in delegating and granting permissions and in authentication of trus…
Welcome, welcome!  If you are new to the series and haven't been following along, please take a brief moment to review the first three installments: Part 1 (http://www.experts-exchange.com/Programming/Languages/Visual_Basic/VB_Script/A_266-VBScri…
Despite its rising prevalence in the business world, "the cloud" is still misunderstood. Some companies still believe common misconceptions about lack of security in cloud solutions and many misuses of cloud storage options still occur every day. …
With just a little bit of  SQL and VBA, many doors open to cool things like synchronize a list box to display data relevant to other information on a form.  If you have never written code or looked at an SQL statement before, no problem! ...  give i…
Suggested Courses

810 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