I want to disable CloseButton in a specific tab in NtabControl, how do I do it. Help please


I want to disable CloseButton in a specific tab in NtabControl, how do...
Author
Message
emin coşkun
emin coşkun
Forum Newbie (0 reputation)Forum Newbie (0 reputation)Forum Newbie (0 reputation)Forum Newbie (0 reputation)Forum Newbie (0 reputation)Forum Newbie (0 reputation)Forum Newbie (0 reputation)Forum Newbie (0 reputation)Forum Newbie (0 reputation)
Group: Forum Members
Posts: 3, Visits: 18
hello I want to disable CloseButton in tabcontrol that I have selected but I can't succeed.My codes are as follows and I write to NTabControl1_SelectedTabChanged event, but when I hover over the tab with the mouse, CloseButton appears.I do not want the tab to appear when I hover over the tab. It does not appear when I select the tab, but it does appear when I hover over the tab with the mouse.
Private Sub NTabControl1_SelectedTabChanged(sender As Object, e As EventArgs) Handles NTabControl1.SelectedTabChanged
   For Each page As NTabPage In NTabControl1.TabPages
    If (page.Text = tab1.Text) Then
      NTabControl1.HasClose = False
    ElseIf (page.Text = NTabControl1.SelectedTab.Text) Then
      NTabControl1.HasClose = True
    End If
   Next
  End Sub[/code]


GO

Merge Selected

Merge into selected topic...



Merge into merge target...



Merge into a specific topic ID...





Similar Topics

Reading This Topic

Login

Explore
Messages
Mentions
Search