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:
Private Sub CmdRemovePictureBox_Click() Me.Controls.Remove "Picture1" 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![]()




Reply With Quote