G
Guest
I've researched as much as I can on the issue, but I've not found any clearly
defined statement that acknowledges that the Hide method for a TabPage object
just doesn't do what it's supposed to do. This appears to be a bug, or maybe
I'm using it incorrectly?
TabPage.Hide should hide the referenced TabPage object, should it not? Do I
have to 'refresh' the Windows form somehow?
The closest I've come to any means of hiding a TabPage from the TabControl
is to have a secondary TabControl that is hidden, and change the TabPage
object's Parent property to be the hidden TabControl. Then to make it
'reappear' in the original TabControl by reassigning the Parent property. The
only problem being here is that when the TabPage is reassigned to the
original, I have to write code to ensure that it 'reappears' in its
appropriate Index location. This just seems too silly to do, for a method
that is supposed to do this in the first place!
defined statement that acknowledges that the Hide method for a TabPage object
just doesn't do what it's supposed to do. This appears to be a bug, or maybe
I'm using it incorrectly?
TabPage.Hide should hide the referenced TabPage object, should it not? Do I
have to 'refresh' the Windows form somehow?
The closest I've come to any means of hiding a TabPage from the TabControl
is to have a secondary TabControl that is hidden, and change the TabPage
object's Parent property to be the hidden TabControl. Then to make it
'reappear' in the original TabControl by reassigning the Parent property. The
only problem being here is that when the TabPage is reassigned to the
original, I have to write code to ensure that it 'reappears' in its
appropriate Index location. This just seems too silly to do, for a method
that is supposed to do this in the first place!