SftTabs/NET 6.0

SetTab Method, SftTabs Class

Softel vdm, Inc.

Places a control on a tab page. To be used by designers only in conjunction with SftTabs/NET.

Syntax      SftTabs Class (Softelvdm.SftTabsNET)

VB   

Public Sub SetTab( _
     ByVal control As Control, _
     ByVal index As Integer )

C#   

public void SetTab(
     Control control,
     int index );

C++   

public: void SetTab(
     Control^ control,
     int index );

control

The Control to be placed on the specified tab as an associated control.

index

The zero-based index of the tab in the tab collection.

Comments

The SetTab method places a control on a tab page. To be used by designers only in conjunction with SftTabs/NET.

Given a control, it assigns the control to the tab described by its zero-based index. The control becomes an associated control of the specified tab. The specified tab index must be a valid index. A tab page can only host one single associated control. If multiple controls need to be hosted by one tab, a SftTabsPanel (or Panel) control can be added instead as an associated control. The Panel control can then in turn host a number of child controls.

The specified control must be a child control of the tab control.


Feedback / comments / error reports for this topic
© 2007 - Softel vdm, Inc. - www.softelvdm.com