Microsoft KB Archive/153354

= BUG: OLE Controls Limited to 20 Property Pages in Visual C++ =

Article ID: 153354

Article Last Modified on 12/2/2003

-

APPLIES TO

 The Resource Editor, when used with:  Microsoft Visual C++ 4.0 Standard Edition

 Microsoft Visual C++ 4.1 Subscription

 Microsoft Visual C++ 4.2 Enterprise Edition

 Microsoft Visual C++ 4.2 Professional Edition</li></ul> </li></ul>

-

<div class="notice_section">

This article was previously published under Q153354

<div class="symptoms_section">

SYMPTOMS
When an ActiveX (OLE) Control that has more than 20 Property Pages is placed on a dialog in the Visual C++ resource editor, you may encounter an error in the development environment when you switch between its property pages. In particular, if you select the tab for a property page numbered greater than 20, you will see a message box indicating: "This program has performed an illegal operation and will be shut down." Selecting a tab for a page numbered less than 20 may also cause an error to occur.

<div class="cause_section">

CAUSE
This behavior is caused by a bug in the Visual C++ development environment, which allows a maximum of property pages for a given ActiveX Control.

<div class="resolution_section">

RESOLUTION
Currently, there are two workarounds for this problem:


 * Limit the number of property pages for an OLE Control to 20. -or-


 * Add a button to the property page that when clicked will bring up a Modal dialog box to handle additional properties.

<div class="status_section">

STATUS
Microsoft has confirmed this to be a bug in the Microsoft products listed at the beginning of this article. We are researching this bug and will post new information here in the Microsoft Knowledge Base as it becomes available.

<div class="references_section">