Changing Visible or Enabled Property Can Cause Extra Change

ID: Q94788


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


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.


MORE INFORMATION

Steps to Reproduce Problem

  1. Start VBDOS.EXE.


  2. From the File menu, choose New Form.


  3. Change the AutoRedraw property of the from to True.


  4. Place a drive list box control on the form.


  5. From the File menu, choose Exit, and save all changes.


  6. Add the following code to the Drive1_Change event procedure:
    
          Sub Drive1_Change ()
             Print "CHANGE EVENT"
             Drive1.Visible = 0 ' False
          End Sub 


  7. Run the program.


  8. Change the Drive List Box to specify another drive.


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 :
Version : MS-DOS:1.0
Platform : MS-DOS
Issue type :


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