When the TabPage.Hide() doesn't have any effect why is still available? tcImgBase.TabPages["tabPage3"].Hide();
The general implementation to hide a tab page is to remove it. Can someone explain the scope of Hide & Show?
When the TabPage.Hide() doesn't have any effect why is still available? tcImgBase.TabPages["tabPage3"].Hide();
The general implementation to hide a tab page is to remove it. Can someone explain the scope of Hide & Show?
The
Hide()
method just changes theVisible
property. It's implemented in theControl
class, which is the base class for all Windows Forms controls. That means that all controls have this method and property and it can't be hidden since that's how C# works. However, it's not meaningful for all controls, such asTagPage
and, indeed, the MSDN documentation says as much:And later:
Both from: http://msdn.microsoft.com/en-us/library/vstudio/y6e1ah1k(v=vs.100).aspx.