Solved

How can I use a different icon?

Posted on 2014-04-04
2
177 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 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

Announcing the Most Valuable Experts of 2016

MVEs are more concerned with the satisfaction of those they help than with the considerable points they can earn. They are the types of people you feel privileged to call colleagues. Join us in honoring this amazing group of Experts.

Question has a verified solution.

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

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…
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…
In an interesting question (https://www.experts-exchange.com/questions/29008360/) here at Experts Exchange, a member asked how to split a single image into multiple images. The primary usage for this is to place many photographs on a flatbed scanner…

696 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