Microsoft KB Archive/190039

= BUG: VB Crashes When Deselecting Multi-Selected Objects =

Article ID: 190039

Article Last Modified on 5/12/2003

-

APPLIES TO


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

-



This article was previously published under Q190039



SYMPTOMS
If you multi-select three or more controls on a form using either the CTRL key or SHIFT key and then deselect one of the controls with the Properties window closed in the integrated development environment (IDE), VB6.exe crashes.

NOTE: This problem does not occur if the Properties window is open.



RESOLUTION
To work around this problem, open the Properties window. You can open the Properties window by pressing the F4 key or clicking on the Properties Window in the View menu in the VB6 IDE.



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 Standard EXE project in Visual Basic. Form1 is created by default. On Form1 place a TextBox (Text1), a CommandButton (Command1), and an OptionButton (Option1). (It does not matter which three controls you use.) Close the Properties window by either clicking the "X" in the upper-right corner of the Properties window, or right-clicking the Properties window and selecting Hide. Hold down the Shift key and select the three controls with the mouse. Deselect one of the controls by holding the Shift key down and clicking on one of the selected controls. This will produce a crash in VB6.exe. Typical error messages that might appear are:

An application error has occurred and an application error log is being Generated.

-or-

This program has performed an illegal operation and will be shut down.

</ol>

Additional query words: Exception Error Access violation IPF Invalid Page Fault GPF Multiselect multiselected

Keywords: kbbug kbctrl kbpending kbideproject KB190039

-

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

© Microsoft Corporation. All rights reserved.