0

How to Enlarge msgbox on VBS?

Already tried below and it display the standard size.

MsgBox "This is a sample box", vbExclamation

Expect size is half or 1/4 of the screen to be covered by the msgbox

Geert Bellekens
  • 12,788
  • 2
  • 23
  • 50
Kim.K.H
  • 39
  • 4
  • this is my Current Code. MsgBox "This is a sample box", vbExclamation – Kim.K.H Aug 23 '19 at 02:46
  • You can't do any of that with the built-in `MsgBox` but you could build a custom dialog using `InternetExplorer.Application` or a [tag:hta]. – user692942 Aug 23 '19 at 07:12

1 Answers1

0

No, you can't.

MsgBox has the following parameters

MsgBox (prompt, [ buttons, ] [ title, ] [ helpfile, context ]) (source)

But it does grow with to accommodate the text passed as prompt. So if you pass a large text it will be bigger.

Images except for the ones show for things like vbExclamation are not possible either.

Geert Bellekens
  • 12,788
  • 2
  • 23
  • 50