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")
2. Now "Save As" "Softsprogrammer.vbs" (Any name with .vbs extension will do).
3. Change the Save As Type to All Files before Saving.
4. Now click on the vbs file to get a Messagebox. :-)
Also you can change the style of your Message box by changing 0 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