Microsoft KB Archive/274757

= PRB: Design-Time Properties of ActiveX TabStrip Controls Don't Work in Visual InterDev =

Article ID: 274757

Article Last Modified on 8/15/2005

-

APPLIES TO


 * Microsoft Visual InterDev 6.0 Standard Edition
 * Microsoft Visual Studio 6.0 Enterprise Edition
 * Microsoft Visual Studio 6.0 Service Pack 4

-



This article was previously published under Q274757



SYMPTOMS
In Visual InterDev, when you use the ActiveX TabStrip controls that are included with Visual Studio, users may experience problems when they try to set the design-time properties of the controls. For example, some properties that are set in the property pages generate errors or do not appear when the page is viewed in the browser, or the property values are not retained when the page is saved.



CAUSE
These controls are not designed for use in the Visual InterDev design environment or in Web pages. Although these controls are available, users encounter limitations in functionality.



RESOLUTION
There are several ways to work around this problem:   Use client-side code that is written in Microsoft Visual Basic Scripting Edition (VBScript) or Microsoft JScript in an HTML page. After you add the TabStrip control to the body of the page, set the properties that cannot be set at design-time as follows:  

    Design custom ActiveX controls in Microsoft Visual Basic or Microsoft Visual C++, or obtain controls from third-party vendors who design controls that work on the Internet. In Visual Basic, create an ActiveX Document application. This allows you to use the TabStrip controls as designed in the Visual Basic development environment. Similar to an ActiveX control, the ActiveX Document is an application that can be downloaded to Microsoft Internet Explorer, installed on the client, and run as part of a Web application over the Internet.</ul>

NOTE: Some developers attempt to use the TabStrip control that comes with the Microsoft Forms 2.0 collection (Fm20.dll), which is installed with Microsoft Office. However, this is not recommended because there are client licensing issues; even if these issues are overcome, these controls are designed to be used in Microsoft Office and not in Visual InterDev or on the Web.

For additional information, click the article number below to view the article in the Microsoft Knowledge Base:

236458 PRB: Using Microsoft Forms 2.0 in Internet Explorer

<div class="moreinformation_section">

Steps to Reproduce Behavior
<ol> In Visual InterDev, create a new Web project, and then add a blank HTML page to the project.</li> Right-click Toolbox, and then click Customize Toolbox.</li> On the ActiveX Controls tab, make sure that the following controls are selected:

<ul> TabStrip Control, Version 6.0 (MSCOMCTL.ocx)</li> SSTab or Microsoft Tabbed Dialogue Control (TABCTL32.ocx)</li></ul>

If these controls do not appear on the ActiveX Controls tab, click Browse to find these files on your system. They are often in the \Winnt\System32 folder.</li> Drag the TabStrip control (MSCOMCTL.ocx) to the body of the page.</li> Right-click the control, and click Properties. Try to add new tabs and set their captions. When you view the page in the browser, the captions do not appear. When you save, close, and then reopen the page, the design-time properties are lost.</li></ol>

The SSTab control exhibits similar behavior when you set tab captions and other properties.

<div class="references_section">