HeaderPane
Main
Hide
Share Link
Print

RestoreButtonEnabled Property, ButtonsClass Class

Defines whether the Restore button is enabled.

Class: ButtonsClass
Namespace: Softelvdm.SftTabsNET
Assembly: Softelvdm.SftTabsNET

Syntax

public bool RestoreButtonEnabled { get; set; }
Public Property RestoreButtonEnabled As Boolean

Value

True if the Restore button is enabled, otherwise False.

The default value is True.

Comments

Defines whether the Restore button is enabled.

Examples

C# View entire sample code

                    break;
                case TabPositionEnum.Right:
                    sftTabs1.Dock = DockStyle.Right;
                    sftTabs1.Width = strip.Width + border.Width;
                    break;
            }
            minimized = true;
            sftTabs1.Buttons.MinimizeButtonEnabled = false;
            sftTabs1.Buttons.RestoreButtonEnabled = true;
        }

        private void sftTabs1_RestoreButtonClicked(object sender, EventArgs e) {
            RestorePages();
        }

        private void RestorePages() {

VB.NET View entire sample code

            SftTabs1.Dock = DockStyle.Left
            SftTabs1.Width = strip.Width + border.Width
        Case TabPositionEnum.Right
            SftTabs1.Dock = DockStyle.Right
            SftTabs1.Width = strip.Width + border.Width
    End Select
    minimized = True
    SftTabs1.Buttons.MinimizeButtonEnabled = False
    SftTabs1.Buttons.RestoreButtonEnabled = True
End Sub

Private Sub SftTabs1_RestoreButtonClicked(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles SftTabs1.RestoreButtonClicked
    RestorePages()
End Sub

Private Sub RestorePages()

See Also ButtonsClass Class | Classes | SftTabs/NET 3.0