Results 1 to 4 of 4

Thread: Unload Object [RESOLVED]

  1. #1

    Thread Starter
    Fanatic Member Ruku's Avatar
    Join Date
    Jul 2002
    Location
    Canada
    Posts
    655

    Resolved Unload Object [RESOLVED]

    How can you unload an object in runtime in vb.net?

    For instance erase a button named button1?

    thx in advance,
    Last edited by Ruku; Oct 25th, 2005 at 03:38 PM.

    Using VB.NET 2005/.NET 2.0, NetBeans IDE 5, Fujitsu Cobol85,
    Website: http://DreamForgery.com

  2. #2
    Frenzied Member Zakary's Avatar
    Join Date
    Mar 2005
    Location
    Canada, Quebec, Montreal
    Posts
    1,654

    Re: Unload Object

    Hi Ruku!
    Try this
    VB Code:
    1. Me.Controls.Remove(MyButton)
    Using VS 2010 on Fw4.0

  3. #3
    Fanatic Member -TPM-'s Avatar
    Join Date
    Jul 2005
    Posts
    850

    Re: Unload Object

    Or this:
    Code:
    button1.dispose()
    TPM

    Add yourself to the VBForums Frappr Map!!

  4. #4

    Thread Starter
    Fanatic Member Ruku's Avatar
    Join Date
    Jul 2002
    Location
    Canada
    Posts
    655

    Talking Re: Unload Object

    thanks a lot...

    hehe, gota get used to that syntax...

    Using VB.NET 2005/.NET 2.0, NetBeans IDE 5, Fujitsu Cobol85,
    Website: http://DreamForgery.com

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