BUG: VB Painting Problem if MsgBox Overlaps Drop-down List

ID: Q93229


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


SYMPTOMS

Text in a MsgBox may not be correctly displayed if the MsgBox overlaps the drop-down list of a Drive List box control. Once the MsgBox has been displayed, you may see part of the Drive List box painted onto the MsgBox, erasing some of the text displayed in the MsgBox.


WORKAROUND

To work round this problem, you can program a timer control to display the message box immediately after the Change event finishes. For example:


SUB Drive1_Change ()
   Timer1.Interval = 1  ' causes one-shot timer event
END SUB

SUB Timer1_Timer ()
   MSGBOX "This is a test of the Drive List box."
   Timer1.Interval = 0  ' disable timer
END SUB 


STATUS

Microsoft has confirmed this to be a bug in the Standard and Professional Editions of Microsoft Visual Basic version 1.0 for MS-DOS. We are researching this problem and will post new information here in the Microsoft Knowledge Base as it becomes available.


MORE INFORMATION

Steps to Reproduce Problem

  1. Start VBDOS.EXE.


  2. Select New Form... from the File Menu (Form1.FRM).


  3. Start FD.EXE, and place a Drive List box control on Form1 in the upper center area.


  4. Exit FD.EXE and save the file.


  5. Add the following code to the Drive1_Change event procedure:
    
       SUB Drive1_Change ()
        MSGBOX ("This is a test of the Drive List box.")
       END SUB 


  6. Press the F5 key to run the program.


  7. Select the down arrow of the Drive List box. Choose an alternative drive with the mouse or arrow keys. The MsgBox is displayed, however some of the text in the message box is blank or erased.


Additional query words: VBmsdos buglist1.00 1.00

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


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