by Steve Garman <news@[EMAIL PROTECTED]
>
Jun 10, 2007 at 08:14 AM
Dale Arends wrote:
> Can't do that. It has some controls that I need while the program is
> running. I just don't want the tabPanel visible.
Are you sure the controls must be on a TabPanel in the first place?
If not, just put them on the pasteboard but off the window.
If the tabpanel is essential at debug time, you could try something like
this
#if not DebugBuild
dim c as Control
dim r as RectControl
for i as Integer = self.ControlCount -1 DownTo 0
c = self.Control( i )
if c isa RectControl and c.TabPanelIndex = 5 then
r = RectControl( c )
r.Parent = nil
r.Left = -9999
end if
next i
TabPanel1.Remove( 4 )
#endif