Page Index Toggle Pages: 1 Send TopicPrint
Normal Topic Deleting a group (Read 1829 times)
ampersand
Junior Member
**
Offline



Posts: 55
Joined: Sep 21st, 2006
Deleting a group
Oct 24th, 2006 at 11:54am
Print Post  
I created a master object of type box and attached several controlHosts to it programmatically.

When the user deletes the box I want the attached objects to be removed also.

What is the most efficent way to do this?

I used BoxDeleting as my starting point, but am unsure how I should delete con controlHosts

Dirk
  
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: Deleting a group
Reply #1 - Oct 24th, 2006 at 12:08pm
Print Post  
After attaching the controls, set

box.SubordinateGroup.AutoDeleteItems = true;

I hope that helps,
Stoyan
  
Back to top
 
IP Logged
 
ampersand
Junior Member
**
Offline



Posts: 55
Joined: Sep 21st, 2006
Re: Deleting a group
Reply #2 - Oct 24th, 2006 at 2:10pm
Print Post  
Thanks,
it's so easy when you know where to look for  Grin

Dirk
  
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: Deleting a group
Reply #3 - Oct 25th, 2006 at 5:15am
Print Post  
8)
  
Back to top
 
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint