90 likes | 422 Views
The Message Box. VB allows the user to generate message boxes as a part of a user program. When invoked they look something like this:. Format of MsgBox. In its simplest form the MsgBox is called by this command: Dim intX As Integer intX = MsgBox("Read the Password"). The Details.
E N D
The Message Box • VB allows the user to generate message boxes as a part of a user program. When invoked they look something like this: Message Box
Format of MsgBox • In its simplest form the MsgBox is called by this command: Dim intX As Integer intX = MsgBox("Read the Password") Message Box
The Details Dim intX As Integer intX = MsgBox("Do this now", _ vbCritical, "Prompting Issue") Message Box
The value of “intZ” above depends on which response is chosen. “Yes” - intZ = 6 “No” - intZ = 7 (the numerical values are chosen by Visual Basic.) Response Choices Dim intZ As Integer intZ = MsgBox(“Should I Do This”, _ vbYesNo ,”Prompting Issue”) Message Box
Icon Choices Message Box
To Learn More... • Search for the topic “msgbox function” in the Visual Basic MSDN Library area. Message Box