Microsoft KB Archive/90906

= Combo1.MOVE Will Hang Machine when Combo Box Is Dropped =

PSS ID Number: 90906

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 Q90906



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.



Steps to Reproduce Problem
 Start VBDOS.EXE. From the File menu, choose New Form. Add a combo box (Combo1) to the form (Form1). Exit the Form Designer (FD.EXE), and save all changes.  Add the following code to the Form_Click event procedure. SUB Form_Click Combo1.MOVE 0,0,10,10 END SUB  Run the program.</li></ol>

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: KB90906

Technology: kbAudDeveloper kbVB100DOS kbVBSearch kbZNotKeyword3

-

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

© 2004 Microsoft Corporation. All rights reserved.