Pages

Monday, 10 February 2014

Show Messagebox in Windows


Friends,

Here you will learn how to create a Messagebox in Windows.

You can create your own messageboxes with the help of Notepad by this vbs trick.



Steps

1. Open Notepad and Type the code given below;

    x = msgbox("Your Text Here",0,"Your Title Here")




2Now "Save As" "Softsprogrammer.vbs" (Any name with .vbs extension will do).
3. Change the Save As Type to All Files before Saving.



4Now click on the vbs file to get a Messagebox. :-)




Also you can change the style of your Message box by changing  with 
the below codes

  • 0 = OK button only
  • 1 = OK and Cancel buttons
  • 2 = Abort, Retry, and Ignore buttons
  • 3 = Yes, No, and Cancel buttons
  • 4 = Yes and No buttons
  • 5 = Retry and Cancel buttons
  • 16 = Critical Message icon
  • 32 = Warning Query icon
  • 48 = Warning Message icon
  • 64 = Information Message icon
Conclusion

You can convert this vbs file to exe to make it uneditable.


See Also

No comments:

Post a Comment

 

About Me

I am Tijo Tom, a Computer Engineer from India.Right from my schooling, I had a passion for Programming, PC Tricks, Virus Creation and Hacking.

I started this blog on Jan 1, 2014 to share my views and ideas with the world.

You can know more about me on