Microsoft KB Archive/73839

= BUG: Scroll Box Flashing Not Updated If Bar Resized w/ Focus =

Article ID: 73839

Article Last Modified on 12/12/2003

-

APPLIES TO


 * Microsoft Visual Basic 1.0 Standard Edition
 * Microsoft Visual Basic 2.0 Standard Edition
 * Microsoft Visual Basic 3.0 Professional Edition
 * Microsoft Windows 3.0 Standard Edition
 * Microsoft Windows 3.1 Standard Edition

-



This article was previously published under Q73839



SYMPTOMS
There is a Microsoft Windows version 3.x (3.0 and 3.1) problem updating the flashing indicator for the scroll box on a vertical scroll bar. This Windows problem affects vertical scroll bars in Microsoft Visual Basic programming system for Windows. This article describes how to work around this problem.



WORKAROUND
You can work around this problem by doing the following:

  In step 2 of the More Information section, add additional code so that the Form_Click procedure appears as follows: Sub Form_Click Const True = -1, False = 0 VScroll1.Height = VScroll1.Height * 2 VScroll1.Enabled = False VScroll1.Enabled = True End Sub  Follow the directions for steps 3, 4, and 5 in the More Information section. You should notice that the problem no longer exists. The flashing has been updated correctly in the same position as the scroll box.



STATUS
Microsoft has confirmed this to be a bug in Microsoft Windows versions 3.0 and 3.1. 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 Visual Basic and place a vertical scroll bar on a form.  Place the following code in the Form_Click event procedure: Sub Form_Click VScroll1.Height = VScroll1.Height * 2 End Sub  From the Run menu, choose Start, or press F5 to run the example.</li> Click and drag the flashing scroll box (on the scroll bar) to the middle (down from the top).</li> Click the form to execute the Form_Click procedure, which doubles the height of the scroll bar. Observe that the scroll box correctly moved to the middle of the longer scroll bar, but the flashing indicator failed to also move.</li></ol>

Additional query words: buglist3.00 buglist3.10 2.00 3.00 3.10

Keywords: kbbug KB73839

-

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

© Microsoft Corporation. All rights reserved.