Formatting Text With RTF Codes
You can format the text shown by the WinInputBox and WinMsgBox functions using a limited set of Rich Text Format (RTF) codes within the text. Many of the codes use the plus symbol (+) and minus symbol (-) to enclose the text that they affect. The codes are only evaluated for the Prompt argument of the functions and do not work in the Title argument text.
The following table describes the available codes.
The following example VBScript code incorporates several formatting codes to produce the result shown in the following figure.
WinMsgBox "$RTF+Read each item in the following bulleted list carefully:$NL" & _
"$BULLET+This is $B+bold$B- text.$NL" & _
"This is $I+italic$I- text.$NL" & _
"This is $U+underlined$U- text.$NL" & _
$BULLET-$NLWas this example helpful?$RTF-", _
AS_QUESTION Or AS_YESNO, _
"Formatted Text Example"