Results 1 to 3 of 3

Thread: Delete Command???Help!

  1. #1

    Thread Starter
    New Member
    Join Date
    Apr 2003
    Posts
    3

    Question Delete Command???Help!

    Does anyone no what the command is to delte an object (such as a button)??? I just started VB .net Please hurry!
    Last edited by sk8erkid; Apr 23rd, 2003 at 01:06 AM.

  2. #2
    Fanatic Member
    Join Date
    Sep 2002
    Posts
    518
    How exactly do you want to delete a control? While you're editing the form, while you're running it, what? Is it important to actually "delete" it or do you just want it to not be visible?

    If you want to delete a control at runtime, at some point in the code for your form you'd have something like:

    Button1.Hide

    If you really, really want a control permanently gone (until you rerun the application anyhow) you can:

    Button1.Dispose()

  3. #3

    Thread Starter
    New Member
    Join Date
    Apr 2003
    Posts
    3
    Thanx!

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