1 / 6

The Message Box

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.

ketan
Télécharger la présentation

The Message Box

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. 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

  2. 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

  3. The Details Dim intX As Integer intX = MsgBox("Do this now", _ vbCritical, "Prompting Issue") Message Box

  4. 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

  5. Icon Choices Message Box

  6. To Learn More... • Search for the topic “msgbox function” in the Visual Basic MSDN Library area. Message Box

More Related