Combo1.MOVE Will Hang Machine when Combo Box Is Dropped

ID: Q90906


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


SYMPTOMS

If you use the last parameter of a MOVE method (Height) when moving a combo box, the system may hang when you later attempt to drop down the combo box.

Note that the height of a combo box is a read-only property, and trying to set it with the MOVE method should produce an error, but does not.


STATUS

Microsoft has confirmed this to be a bug in Microsoft Visual Basic for MS-DOS, version 1.0. 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. Add a combo box (Combo1) to the form (Form1).


  4. Exit the Form Designer (FD.EXE), and save all changes.


  5. Add the following code to the Form_Click event procedure.
    
           SUB Form_Click ()
               Combo1.MOVE 0,0,10,10
           END SUB 


  6. Run the program.


Drop down the combo box; it should work correctly. Click on Form1; notice that the combo box has been MOVEd to the upper left of the screen (0,0) and its Width and Height have been set.

Note that the height is a READ-ONLY property and cannot be set. When you now try to drop down the combo box, your machine will hang.

To work around this problem, do not use the last field in the MOVE method (that is, do not try to set its Height).

Additional query words: VBmsdos buglist1.00 1.00

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


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