ID Number: Q81955
1.00
WINDOWS
buglist1.00
Summary:
If you perform a manual drag (using the Drag method) in the GotFocus
event for an Instant Change Scroll Bar custom control, and change the
focus to the Instant Change Scroll Bar control in either the Change or
Changing event, the Instant Change Scroll Bar control may give an
Unrecoverable Application Error (UAE). Below are the steps to
reproduce the problem within the GotFocus event procedure of the
Instant Change Scroll Bar (INSTSCRL.VBX.)
Microsoft has confirmed this to be a problem in Microsoft Visual Basic
Professional Toolkit for Microsoft Visual Basic programming system
version 1.0 for Windows. We are researching this problem and will post
new information here as it becomes available.
More Information:
Steps to Reproduce Problem
--------------------------
1. Run Visual Basic, or from the File menu, choose New Project (ALT,
F, N) if Visual Basic is already running. Form1 is created by
default.
2. From the File menu, choose Add File. In the Files box, select the
INSTSCRL.VBX custom control file. The Instant Change Scroll Bar
tools appear in the toolbox.
3. Place an InstHScroll or InstVScroll control and a command
button on Form1.
4. Double-click on the Instant Change Scroll Bar control (or press F7)
to open the Code window. Enter the following code in the Changing
event:
Sub InstHScroll1_Changing ( )
Command1.TabIndex = 0
InstHScroll1.TabIndex = 1
End Sub
Add the following code in the GotFocus event:
Sub InstHScroll1_GotFocus ( )
InstHScroll1.Drag 1
End Sub
5. Press F5 to run the example. Click on the scroll arrow of the
Instant Change Scroll Bar and wait a few seconds. A UAE will occur.
This problem occurs with both the InstVScroll and InstHScroll
controls, and with the code above in either the Change or Changing
events.
Additional reference words: 1.00