FIX: Problems Calling DoEvents from a Scroll Bar Change EventLast reviewed: October 30, 1997Article ID: Q95498 |
2.00
WINDOWS
kbprg kbbuglist
The information in this article applies to: - Microsoft Visual Basic programming system for Windows, version 2.0
SYMPTOMSThere are two parts to this bug, a paint problem and a stack problem. These two problems can occur when DoEvents is called from the Change event of a scroll bar.
WORKAROUNDTo work around the problem, move code containing DoEvents calls from the change event to a timer event. Then from the scroll bar change event, enable the timer. For example, add the following steps to those listed in the "More Information" section to implement this workaround:
STATUSMicrosoft has confirmed this to be a bug in Microsoft Visual Basic version 2.0. The stack problem was corrected in Microsoft Visual Basic version 3.0. However, the paint problem still exists.
MORE INFORMATION
Steps to Reproduce Problem
To demonstrate the painting problems, click either of the arrows. Then move the scroll thumb of the scroll bar in any direction. The scroll bar will be painted incorrectly. This will also lead to an "Out of stack space" error message.
|
Additional reference words: buglist2.00 fixlist3.00 2.00 3.00
© 1998 Microsoft Corporation. All rights reserved. Terms of Use. |