This property is not intended to be used from your code. The owning control positions and sizes its pages.
Class: TabPageClass
Namespace: Softelvdm.SftTabsNET
Assembly: Softelvdm.SftTabsNET
public new Point Location { get; set; }
Public Shadows Property Location As PointThis property is not intended to be used from your code. The owning control positions and sizes its pages.
private void buttonAdd_Click(object sender, EventArgs e) {
++addedTabs;
TabClass tab = sftTabs1.Tabs.Add("Added " + addedTabs);
tab.CloseButton = TabCloseButtonOptionalEnum.Always;
// the page of the new tab is created by the control
Label label = new Label();
label.AutoSize = true;
label.Location = new Point(12, 12);
label.Text = "This tab was added by the Add Tab button. Its close button removes it.";
tab.Page.Controls.Add(label);
tab.Select();
}
private void buttonClear_Click(object sender, EventArgs e) {
Private Sub ButtonAdd_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles ButtonAdd.Click
addedTabs += 1
Dim tab As TabClass = SftTabs1.Tabs.Add("Added " + addedTabs.ToString())
tab.CloseButton = TabCloseButtonOptionalEnum.Always
' the page of the new tab is created by the control
Dim info As New Label()
info.AutoSize = True
info.Location = New Point(12, 12)
info.Text = "This tab was added by the Add Tab button. Its close button removes it."
tab.Page.Controls.Add(info)
tab.Select()
End Sub
Private Sub ButtonClear_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles ButtonClear.ClickSee Also TabPageClass Class | Classes | SftTabs/NET 3.0