We help IT Professionals succeed at work.

VBScript - Custom buttons on msgbox

Medium Priority
4,809 Views
Last Modified: 2013-11-25
Hi,
I
 want a message box to pop up when users log on to Windows, and I want to display a message and give them three buttons to click on, and action them based on what button they click. Is it possible to have customized buttons to display whatever text you want on the buttons apart from the standard "Yes/No/Cancel/OK"?

CV
Comment
Watch Question

Commented:
Unfortunately, no.  The vbscript MsgBox function is limited to a very few built-in buttons.  This page lists the available choices.

Not the solution you were looking for? Getting a personalized solution is easy.

Ask the Experts
Jeffrey CoachmanMIS Liason
CERTIFIED EXPERT
Most Valuable Expert 2012

Commented:
connelvalentine,

Just curious,

Why would you want this?

You can write your own program with a form to display whatever buttons you like, after they log on.

A form is pretty much the only way to simulate a msgbox with custom buttons

JeffCoachman

JeffCoachman
Access more of Experts Exchange with a free account
Thanks for using Experts Exchange.

Create a free account to continue.

Limited access with a free account allows you to:

  • View three pieces of content (articles, solutions, posts, and videos)
  • Ask the experts questions (counted toward content limit)
  • Customize your dashboard and profile

*This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

OR

Please enter a first name

Please enter a last name

8+ characters (letters, numbers, and a symbol)

By clicking, you agree to the Terms of Use and Privacy Policy.