Microsoft KB Archive/191857

= BUG: Scrollbar Disabled in IDE When Enabled is Set to False =

Article ID: 191857

Article Last Modified on 5/13/2003

-

APPLIES TO


 * Microsoft Visual Basic 5.0 Learning Edition
 * Microsoft Visual Basic 6.0 Learning Edition
 * Microsoft Visual Basic 5.0 Professional Edition
 * Microsoft Visual Basic 6.0 Professional Edition
 * Microsoft Visual Basic 5.0 Enterprise Edition
 * Microsoft Visual Basic 6.0 Enterprise Edition

-



This article was previously published under Q191857



SYMPTOMS
When designing a form, if you add a horizontal or vertical ScrollBar and set one or both to disabled, then you cannot use click-and-drag to move the ScrollBar(s) unless you close and re-open the form.



RESOLUTION
To avoid this problem, set the Enabled property of the ScrollBars in the Form Load event. See step 5 in the MORE INFORMATION section below.



STATUS
Microsoft has confirmed this to be a bug in the Microsoft products listed at the beginning of this article.



Steps to Reproduce Behavior
 Start a new Standard EXE project in Visual Basic. Form1 is created by default. Add a vertical ScrollBar control and a horizontal ScrollBar control to to Form1. Set the Enabled property of each ScrollBar to False. Note that you can not change the positions of the ScrollBars by clicking and dragging the control with the mouse. Close the form and re-open it. The ScrollBars can now be re-positioned.  Set the Enabled property of the horizontal and vertical ScrollBars to True, and then add the following code to the Form Load event: HScroll1.Enabled = False VScroll1.Enabled = False You can now reposition the ScrollBars as expected. </ol>

Additional query words: kbDSupport kbDSD kbVBp kbCtrl kbVBp600bug kbVBp500bug

Keywords: kbbug KB191857

-

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

© Microsoft Corporation. All rights reserved.