Hide

SftTabs/OCX 6.5 - Tab Control for VB6

Display
Print

Using SftTabs/OCX with Visual Basic

The control is automatically registered in the Windows Registry during installation of SftTabs/OCX. Please see Distributing SftTabs/OCX for information on how to ship the control with your application.

The SftTabs/OCX control must be added to the Toolbox before it can be used in a project. The Toolbox normally displays the standard Visual Basic controls and any other ActiveX controls that have been added previously.

The control is added to the Toolbox using the Project, Components... menu command, which displays the following dialog:

Select the control "SftTabs/OCX 6.5 Tab Control" by placing a check mark next to it and click OK. This adds the control to the Toolbox. If you don't see the control in the list, make sure Selected Items Only is not checked. Once you click Apply or OK and an error message is displayed, the product SftTabs/OCX is not correctly installed or the control may have been unregistered accidentally. Quit Visual Basic and use the entry Maintenance, Register SftTabs OCX in Windows Registry in the SftTabs OCX 6.5 program group to register the control. Restart Visual Basic and try to add the control to the Toolbox again.

Now the control can be added to a form by clicking on the SftTabs button of the Toolbox.

Once the tab control has been added to a form, all its properties, including the tabs and associated controls can be defined at design-time. After adding the control to the form, right click on the control and select the Properties... entry of the popup menu. This displays the Property Dialog for the control.

You can run the sample application now and it displays a tab control with four tabs.

You may want to change the Style property to choose a suitable tab control look.

This control has many properties and methods which you can use. This is a very simple example and doesn't even begin to exploit the capabilities of this control. Please take a moment to familiarize yourself with the objects offered by the SftTabs/OCX control. Each object represents a specific area of the control and can be fully customized. Also make sure to run the demo which is included with this product and take a look at the included samples.


Last Updated 08/13/2020 - (email)
© 2024 Softel vdm, Inc.