Hi,
I have the code to remove a tab in a tabcontrol,
That's
$tabcontrol.TabPages.Remove($tab)
but how can I disable a tab (actually multiple only focussing on one) based upon a certain value in a grid.
Just need to code to disable it, then I can work it out
Thanks.
Disable tab in tabcontrol based upon value
Forum rules
Do not post any licensing information in this forum.
Any code longer than three lines should be added as code using the 'Select Code' dropdown menu or attached as a file.
Do not post any licensing information in this forum.
Any code longer than three lines should be added as code using the 'Select Code' dropdown menu or attached as a file.
Re: Disable tab in tabcontrol based upon value
Only one tab can be enabled at a time and that is the one that is visible. Just make the tab you want the visible tab.
If you are asking how to prevent a user from changing tabs then just catch the tab changing even and throw it away. This is the easiest way to control navigation.
If you are asking how to prevent a user from changing tabs then just catch the tab changing even and throw it away. This is the easiest way to control navigation.