Microsoft KB Archive/93229

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

PSS ID Number: 93229

Article Last Modified on 1/8/2003

-

The information in this article applies to:


 * Microsoft Visual Basic for MS-DOS 1.0

-



This article was previously published under Q93229



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 &quot;This is a test of the Drive List box.&quot; 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.



Steps to Reproduce Problem
 Start VBDOS.EXE. Select New Form... from the File Menu (Form1.FRM). Start FD.EXE, and place a Drive List box control on Form1 in the upper center area. Exit FD.EXE and save the file.  Add the following code to the Drive1_Change event procedure: SUB Drive1_Change MSGBOX (&quot;This is a test of the Drive List box.&quot;) END SUB  Press the F5 key to run the program.</li> 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.</li></ol>

Additional query words: VBmsdos buglist1.00 1.00

Keywords: kbbug KB93229

Technology: kbAudDeveloper kbVB100DOS kbVBSearch kbZNotKeyword3

-

[mailto:TECHNET@MICROSOFT.COM Send feedback to Microsoft]

© 2004 Microsoft Corporation. All rights reserved.