To simple answer to this situation is NO as there is no property to disable tabpage.
You can use third party control to do this.
Other solution for this is to disable all controls on that tab page. We can achieve this with the help of follwoing code snippest ..
For Each tab As Control In Me.tabMain.Controls
Dim c As TabPage = TryCast(tab, TabPage)
If Not c Is Nothing Then
tab.Enabled = False
End If
Next
Above code we can put on TabSelectedIndexChange event, and can disable or enable.
Please let you know that you can able to select tab but all control on that is disabled so you can not do anything.
No comments:
Post a Comment