Hello KentMartin,
As you mentioned, the documentation for the RemovePanel function states that the visibility of the selected panel is disabled. Also, the documentation notes that the panel corresponding to the removed tab is no longer owned by the Tab control. Since this is the case, if you remove a panel, add a control to the panel, and want to redisplay the panel, you have to reload that panel on the EasyTab control. In order to do this, you would have to call EasyTab_LoadPanels with the correct panel ID (as saved in the UIR header file).
For example, the following code would remove a panel, add a control to it, and then redisplay the panel on the easytab.
EasyTab_RemovePanel (panel, tabCtrl, panelToUpdate);
NewCtrl (panelToUpdate, CTRL_CHECK_BOX, "new", 50, 50);
EasyTab_LoadPanels (panel, tabCtrl, 1,"simpdemo.uir",__CVIUserHInst, PANEL_2, &panelToUpdate, 0);
Hope that helps.
Wendy L
LabWindows/CVI Developer Newsletter