Results 1 to 38 of 38

Thread: Removing a control that was not added with the Controlers.add command {RESOLVED}

Threaded View

  1. #1

    Thread Starter
    Hyperactive Member stilekid007's Avatar
    Join Date
    Apr 2005
    Location
    DUDE! I'm your neighbor! HELLO!!!
    Posts
    388

    Resolved Removing a control that was not added with the Controlers.add command {RESOLVED}

    Hello,

    I have a picture box that I need to be deleted from the program when the user clicks on a command button.

    I tried using

    VB Code:
    1. Private Sub CmdRemovePictureBox_Click()
    2. Me.Controls.Remove "Picture1"
    3. End Sub

    But I got the error "Controls.Remove can only remove controls added with controls.add."

    Is there a way to remove a picture box with a different command?

    Thank you very much!
    Stilekid007
    Last edited by stilekid007; Jun 10th, 2005 at 10:27 AM.

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