

That’s it, we have just written a basic VBScript program that will display a dialog box as output. Hydro = msgbox("Remember to drink water!", 0+64, "Hydration Check") To get more than one above mentioned property in you dialog box, you can simple write, for example: “0+16”, instead of “0” in above code. ? ❌ 16 Critical Message icon will be shown in the dialog box ? 32 Warning Query icon will be shown in the dialog box ❓ 48 Warning Message icon will be shown in the dialog box ? 64 Information Message icon will be shown in the dialog box ⏺ 0 First button will become default 256 Second button will become default 512 Third button will become default 768 Fourth button will become default 0 Triggers the application modal (basically, the current application will stop working until the user responds to the dialog box) 4096 Triggers the System modal (basically, all applications will stop working until the user responds to the dialog box)Ĭhange “0” in the above written code with any of the numbers provided just above. ✅❎ 5 Retry and Cancel buttons will be displayed. ✅❎❌ 4 Yes and No buttons will be displayed. ? 3 Yes, No, and Cancel buttons will be displayed. ? ❌ 2 Abort, Retry, and Ignore buttons will be displayed. ? 1 OK and Cancel buttons will be displayed. To change the property of the dialog box with respect to what you need, refer the following data: Code Property 0 Only “OK” button will be displayed. Put_any_Variable_name = msgbox("Your main text here", 0, "Your title text here") Effectively, We can break and understand the above code in the following manner:


GATE CS Original Papers and Official Keys.
