BUG: Properties Dialog Appears When TabStrip Double-Clicked

Last reviewed: July 18, 1997
Article ID: Q171598
The information in this article applies to:
  • Microsoft Visual Basic Control Creation, Learning, Professional and Enterprise editions for Windows, version 5.0
  • Microsoft Visual Basic Standard, Professional, and Enterprise Editions, 32-bit only, for Windows, version 4.0

SYMPTOMS

If a Tabstrip control resides on a form with other controls, the Properties dialog for the Tabstrip may inadvertently appear at run-time.

STATUS

Microsoft has confirmed this to be a bug in the Microsoft products listed at the beginning of this article. This problem has been corrected with the version of COMCTL32.OCX that ships with Microsoft Visual Basic 5.0.

MORE INFORMATION

Properties dialogs for controls should be available only at design time. However, if you use the Click event of the Tabstrip control to set the focus to another control on the form and then double-click the work area of the Tabstrip, the Property dialog for the TabStrip will appear.

Steps to Reproduce Behavior

  1. Start a new project.

  2. Add a Tabstrip control to Form1.

  3. Add a TextBox control to Form1.

  4. In the Click event of Tabstrip1 add the following code.

          Text1.setfocus.
    

  5. Press the F5 key to run the program.

  6. Click once on the tab of TabStrip1.

  7. Double-click on the work area of TabSrip1.

    The Properties dialog appears as if you are in design mode.


Additional query words: tab strip comctl32.ocx
Keywords : EnvtRun vb432 vb4win kbhowto
Version : 4.0 5.0
Platform : NT WINDOWS
Issue type : kbbug
Resolution Type : kbfix


THE INFORMATION PROVIDED IN THE MICROSOFT KNOWLEDGE BASE IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND. MICROSOFT DISCLAIMS ALL WARRANTIES, EITHER EXPRESS OR IMPLIED, INCLUDING THE WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. IN NO EVENT SHALL MICROSOFT CORPORATION OR ITS SUPPLIERS BE LIABLE FOR ANY DAMAGES WHATSOEVER INCLUDING DIRECT, INDIRECT, INCIDENTAL, CONSEQUENTIAL, LOSS OF BUSINESS PROFITS OR SPECIAL DAMAGES, EVEN IF MICROSOFT CORPORATION OR ITS SUPPLIERS HAVE BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. SOME STATES DO NOT ALLOW THE EXCLUSION OR LIMITATION OF LIABILITY FOR CONSEQUENTIAL OR INCIDENTAL DAMAGES SO THE FOREGOING LIMITATION MAY NOT APPLY.

Last reviewed: July 18, 1997
© 1998 Microsoft Corporation. All rights reserved. Terms of Use.