Results 1 to 2 of 2

Thread: Destroy Control

  1. #1

    Thread Starter
    Frenzied Member JasonLpz's Avatar
    Join Date
    Mar 2001
    Location
    Brooklyn, NY
    Posts
    1,335

    Destroy Control

    How do i destroy a control at runtime ?
    - JayWare
    Live to love. Not to Hate

    Im to busy to have a site. But I got one and still working on it.

    http://dre3k.net/

  2. #2
    PowerPoster
    Join Date
    Oct 2002
    Location
    British Columbia
    Posts
    9,758
    It depends how the control was added to the form.

    If you used the Controls.Add method then use the Controls.Remove method.

    If you used the Load method use the Unload method.

    If the control was added at design time you cannot remove it at runtime.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width