TabControl::ControlCollection::Add Method (Control^)

 

Adds a Control to the collection.

Namespace:   System.Windows.Forms
Assembly:  System.Windows.Forms (in System.Windows.Forms.dll)

public:
virtual void Add(
	Control^ value
) override

Parameters

value
Type: System.Windows.Forms::Control^

The Control to add.

Exception Condition
Exception

The specified Control is a TabPage.

You cannot add a TabPage to a TabPage.

.NET Framework
Available since 1.1
Return to top
Show: