ALT Key Required to Access VB for MS-DOS MsgBox Buttons

ID: Q89043


The information in this article applies to:
  • Microsoft Visual Basic Standard and Professional Editions for MS-DOS, version 1.0


SUMMARY

The dialog box invoked by the MsgBox function in Microsoft Visual Basic version 1.0 for MS-DOS functions differently then that invoked by the MsgBox function in Microsoft Visual Basic version 1.0 for Windows.

When you use a MsgBox function in Microsoft Visual Basic for Windows with the Yes and No buttons (that is, type 3 or 4), you can select the Yes or No button by simply pressing Y or N. In Microsoft Visual Basic for MS-DOS, you are not able to select the Yes or No button by pressing Y or N. In Microsoft Visual Basic for MS-DOS, you need to use the key combination ALT+Y or ALT+N to select the Yes or No button.


MORE INFORMATION

Steps to Reproduce Behavior

  1. Start Visual Basic for MS-DOS with a New Project selected from the File menu.


  2. In the Code window, add the following code:
    
          msg% = MSGBOX("This is a test", 3) 


  3. Run the program. You should see the Msgbox window with the text "This is a test" and three buttons with the text "Yes," "No," and "Cancel" displayed.


  4. Press Y or N; the MsgBox window will not go away.


To get the MsgBox window to disappear, press ALT+N or ALT+Y.

Additional query words: VBmsdos 1.00

Keywords :
Version : MS-DOS:1.0
Platform : MS-DOS
Issue type :


Last Reviewed: December 4, 1999
© 2000 Microsoft Corporation. All rights reserved. Terms of Use.