SoFunction
Updated on 2025-04-06

Questions about how to hide C# TabPage

Copy the codeThe code is as follows:

["tpgSize"].Parent = null;
["tpgColor"].Parent = null;

The above code removes the two TabPags (tpgSize, tpgColor)e that were originally tabcontrol(tclMain)
Copy the codeThe code is as follows:

(tpgSize);

The above code adds the original tabpage (tpgSize) back