Hi George, hi Curtis, > [...] > Have you tried putting an if Parent = test in your loop?
This is possible but there is another way. If you pick a groupbox (or any other TWinControl) you can get all controls which have it as parent by property 'Controls'. And another one: You are dealing with controls (a special kind of components). If you read delphi online help for 'TWinControl.RemoveControl' you should better use TControl(Executive_Active_Panels[PnlNdx]).Parent := nil instead of RemoveComponent. HTH. -- Cheers, J�rn ----------------------------------------------------- Home page: http://groups.yahoo.com/group/delphi-en/ To unsubscribe: [EMAIL PROTECTED] Yahoo! Groups Links <*> To visit your group on the web, go to: http://groups.yahoo.com/group/delphi-en/ <*> To unsubscribe from this group, send an email to: [EMAIL PROTECTED] <*> Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/

