FIX: Stack Fault When Move Makes Combo Box Width Too Small (95830)
The information in this article applies to:
- Microsoft Visual Basic Standard Edition for Windows 2.0
- Microsoft Visual Basic Standard Edition for Windows 3.0
- Microsoft Visual Basic Professional Edition for Windows 2.0
- Microsoft Visual Basic Professional Edition for Windows 3.0
- Microsoft Visual Basic Standard Edition for Windows 1.0
This article was previously published under Q95830 SYMPTOMS
A Stack Fault results if a Move method changes the Width property of a
combo box containing two to eight items to a small value.
The optional third parameter to the Move method changes the width property
of the control to which the method applies. Applying the method to the
combo box with a third parameter of less then 240 when the scale mode is
set to twips, produces a Stack Fault Application Error halting the
execution of your application.
WORKAROUND
Changing the Width property, by using the Move method or by setting the
property directly, to a value as small as 240 practically eliminates the
functionality of the control. At this width, the combo box is barely wide
enough to view the drop-down button. Hence no entries in the combo box are
visible to the user.
If want your application to move the control to a position where the user
can not view the control at that instant, use one of these techniques: - Set the Visible property of the combo box to False.
- Set the Top and Left properties of the combo box to position the control
outside the visible region of the Form.
STATUS
Microsoft has confirmed this to be a bug in the Microsoft products listed
at the beginning of this article. This problem has been corrected in Visual
Basic version 4.0.
Modification Type: | Major | Last Reviewed: | 12/12/2003 |
---|
Keywords: | kbbug kbenv kbfix KB95830 |
---|
|