Filled Under: , , ,

Create Error Message with Different Buttons & Icons

In this post I am going to teach you how to create a customised message box using Notepad. This is not the Simple Error Message Box that i posted in one of my previous article. In this message box you will be able to add some more buttons to make it more real. So just start learning and have fun! If you get any problem in tutorial, Just comment below.
                                        Create Error Message with Different Buttons & Icons

SEE ALSO:
PART-1: Create Simple Customized Error Message
 

PART-3: Create Yes/No Error Message with Different Answers

Tutorial:

  1. Open Notepad and Paste below code into it.
    x=msgbox("Display Text",Number,"Display Title")
                                    Create Error Message with Different Buttons & Icons
       
  2. Change the text Display Text with your message that will be shown in Message box and Display Title with the title that you want to give to your Message box.
    In place of number type the Number of the buttons that you want to show in your error box.
    For Eg: If you want to show 'Yes, No & Cancel' buttons then type 3.

    More Buttons & Their Numbers:
    0Normal message box
    1: OK and Cancel
    2: Abort, Retry, Ignore
    3: Yes, No, Cancel
    4: Yes and No
    5: Retry and Cancel
    16: Critical message icon 
    32: Warning query icon
    48: Warning message icon
    64: Information message icon
    4096: Always stay on top of the desktop
      
                             Create Error Message with Different Buttons & Icons

    Here i changed Display Text, Title and Number with my own preference.

  3. Now Click on File > Save As & Save the file as "anything.vbs" 
    Remember: 
    Name can be anything but .vbs extension is must. Here i name the file as 'Message.vbs'.

                                                 Create Error Message with Different Buttons & Icons
                     
                          Create Error Message with Different Buttons & Icons
     
  4. Save the file anywhere you want and Double click to open it and see your Message.

                                     Create Error Message with Different Buttons & Icons
NOTE: You can also Paste this file in startup folder if you want to show this Message every time you boot to your desktop. 


Advertisement
If you want more tricks delivered to you for free then you can join our Free Email Newsletter. You can also join us on Facebook and Twitter to get our latest posts in your feed.

0 comments:

Post a Comment

Have anything to add in this article? Just Comment below. Your comments and views are always appreciated.

For Off-Topic Help please refer to this page: http://www.windroidtricks.in/p/help-support.html