Feb 6, 2004 #1 gaudibri Programmer Dec 6, 2002 19 FR Hi everybody, A pink star for the one who could help me deleting dynamically-created controls with then .Controls.Add method. Thanks in advance for all those who will take part in this great contest
Hi everybody, A pink star for the one who could help me deleting dynamically-created controls with then .Controls.Add method. Thanks in advance for all those who will take part in this great contest
Feb 6, 2004 #2 gwar2k1 Programmer Apr 17, 2003 387 GB faq222-3906 check the faqs before asking ~*Gwar3k1*~ "To the pressure, everything's just like: an illusion. I'll be losing you before long..." Upvote 0 Downvote
faq222-3906 check the faqs before asking ~*Gwar3k1*~ "To the pressure, everything's just like: an illusion. I'll be losing you before long..."
Feb 6, 2004 Thread starter #3 gaudibri Programmer Dec 6, 2002 19 FR Re-Check my question before answering, the FAQ doesn't explain how to remove controls created with Controls.Add(). Regards. Upvote 0 Downvote
Re-Check my question before answering, the FAQ doesn't explain how to remove controls created with Controls.Add(). Regards.
Feb 6, 2004 #4 gwar2k1 Programmer Apr 17, 2003 387 GB fair doos ~*Gwar3k1*~ "To the pressure, everything's just like: an illusion. I'll be losing you before long..." Upvote 0 Downvote
fair doos ~*Gwar3k1*~ "To the pressure, everything's just like: an illusion. I'll be losing you before long..."
Feb 6, 2004 #5 gwar2k1 Programmer Apr 17, 2003 387 GB form1.Controls.remove("objectName" sorry if this is wrong. i did a search on google after feelin bad about the 1st post ~*Gwar3k1*~ "To the pressure, everything's just like: an illusion. I'll be losing you before long..." Upvote 0 Downvote
form1.Controls.remove("objectName" sorry if this is wrong. i did a search on google after feelin bad about the 1st post ~*Gwar3k1*~ "To the pressure, everything's just like: an illusion. I'll be losing you before long..."
Feb 6, 2004 Thread starter #6 gaudibri Programmer Dec 6, 2002 19 FR VB reply it can't unload in this context. Thanks anyway for helping. Upvote 0 Downvote
Feb 6, 2004 #7 TheVampire Programmer May 1, 2002 828 US Use the Unload function. i.e: Unload MyControl If it has an index ( part of a control array ) then refer to the index in the Unload: Unload MyControl(index) Note that unloading of controls is not permitted in certain subs, like in the click events for combo boxes. HTH, Robert Upvote 0 Downvote
Use the Unload function. i.e: Unload MyControl If it has an index ( part of a control array ) then refer to the index in the Unload: Unload MyControl(index) Note that unloading of controls is not permitted in certain subs, like in the click events for combo boxes. HTH, Robert