|
-
Feb 14th, 2010, 05:53 PM
#3
Re: How do I delete/remove custom control from a form programmatically?
 Originally Posted by Zeelia
First of all, set the visible property to false and then use this method:
ctlCorkNotes.Dispose()
That will release all resources to your control.
The Visible property is irrelevant. Call the control's Dispose method and then Remove it from its Parent's Controls collection.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|