10 July 2013

How to Make your Own Dialogue Box


The code is:
X=MsgBox("Message Description",0+16,"Title")


[1] You can write any number from 1,2,3 or 4 instead of 0 (before the '+' symbol) and here is the meaning of these numbers:



0 = OK Button,
1 = OK / Cancel Button,
2 = Abort / Retry / Ignore Button,
3 = Yes / No / Cancel Button,
4 = Yes / No Button,
5 = Retry / Cancel Button?

[2] You can write 32 or 48 or 64 instead of 16.
Here is the meaning of each number:

16 = Critical Icon,
32 = Help Icon,
48 = Warning Icon,
64 = Information Icon,


Make sure you add ".vbs" after the name :)

No comments:

Post a Comment

About The Author

Signature

Signature