I want to hide all pages in a tab control (except 1), but my obvious guess does not work and I can't find anything else.
I try:
foreach (TabPage page in myTabControl.TabPages)
{
...
page.PageVisible = false; //Compile error here
}
'System.Windows.Forms.TabPage' does not contain a definition for 'PageVisible' and no extension method 'PageVisible' accepting a first argument of type 'System.Windows.Forms.TabPage' could be found (are you missing a using directive or an assembly reference?)