TabPage disabling

  • Thread starter Thread starter Tony
  • Start date Start date
T

Tony

Hi

I'm using a TabControl and need to disable a tabpage such that, although it
is visible, it cannot be selected or viewed in anyway. The text of the tab i
guess should be "greyed out".

Any suggestions?

TIA

Tony
 
I just went thru this yesterday. There's a bug in the tab
control that was reported in the KnowledgeBase. The
Show/Hide functions are not working. You have to manually
disable all the controls on your tab page. I have mine in
group boxes and was able to just disable the group box and
it disabled all the control at the same time. In order to
programmatically select a tab page, you need to set the
tabcontrol's SelectedTab property to the tab page you want
to show. The user can still select other pages but the
controls will be disabled.
 
Back
Top