answersLogoWhite

0

What is Message Box in VB?

Updated: 8/11/2023
User Avatar

Wiki User

10y ago

Best Answer

A message box is a predefined function which displays a box containing text, a title, a series of buttons and a small indicative picture to the user informing them of the basic nature of the message (E.g A Critical Exception would have a large red circle with a cross in it). It will return an integer value to its calling procedure to indicate which button the user clicked (e.g. Ok or Cancel).

The code for a message box is structured as follows:

MsgBox(,