You can add arbitrary controls to each of your C1Tabs's tab pages using a simple drag-and-drop operation, XHTML, or code. This topic illustrates how to add a standard Button control to a tab page This topic assumes you have added at least one tab page to the control (see Adding Tab Pages to the C1Tabs Control).
In Design View
Complete the following steps:
In Source View
Complete the following steps:
<cc1:C1TabPage>
tag for the tab page you wish to add the control to and place the following tag between them:In Code
Complete the following steps:
To write code in Visual Basic
Visual Basic |
Copy Code
|
---|---|
Dim nuButton As Button = New Button() nuButton.Text = "Hello World!" |
To write code in C#
C# |
Copy Code
|
---|---|
Button nuButton = new Button(); nuButton.Text = "Hello World!"; |
To write code in Visual Basic
Visual Basic |
Copy Code
|
---|---|
C1TabPage1.Controls.Add(nuButton) |
To write code in C#
C# |
Copy Code
|
---|---|
C1TabPage1.Controls.Add(nuButton); |