Microsoft KB Archive/94788

= Changing Visible or Enabled Property Can Cause Extra Change =

PSS ID Number: 94788

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 Q94788



SYMPTOMS
If you set the Visible or Enabled property of a drive list box control to False or zero (0) in the Change event of that drive, the Change event occurs twice when it should occur only once.



STATUS
Microsoft has confirmed this to be a bug in both 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. From the File menu, choose New Form. Change the AutoRedraw property of the from to True. Place a drive list box control on the form. From the File menu, choose Exit, and save all changes.  Add the following code to the Drive1_Change event procedure: Sub Drive1_Change Print &quot;CHANGE EVENT&quot; Drive1.Visible = 0 ' False End Sub </li> Run the program.</li> Change the Drive List Box to specify another drive.</li></ol>

The Change event is incorrectly called twice instead of once. The same thing happens if you set the Enabled property to False or zero (0).

Additional query words: VBmsdos buglist1.00 1.00

Keywords: KB94788

Technology: kbAudDeveloper kbVB100DOS kbVBSearch kbZNotKeyword3

-

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

© 2004 Microsoft Corporation. All rights reserved.