Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

How can I use a different icon?

Posted on 2014-04-04
2
Medium Priority
?
180 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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

VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

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…
Deploying a Microsoft Access application in a Citrix environment is not difficult but takes a few steps. However, Citrix system people are often of little help, as they typically know next to nothing about Access. The script provided here will take …
Sometimes it takes a new vantage point, apart from our everyday security practices, to truly see our Active Directory (AD) vulnerabilities. We get used to implementing the same techniques and checking the same areas for a breach. This pattern can re…
Is your data getting by on basic protection measures? In today’s climate of debilitating malware and ransomware—like WannaCry—that may not be enough. You need to establish more than basics, like a recovery plan that protects both data and endpoints.…
Suggested Courses

636 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