How do I delete an object off my form?
Printable View
How do I delete an object off my form?
I suppose you could hide it?
Not sure what else you mean. Remove an object you created at runtime?VB Code:
Command1.Visible = False
no remove an object that I created before runtime (forgot what its called), I need to delete it off my form (I can't hide a windows media player)
Maybe you can't hide it but you sure can set its Visible property to False.
yeah.. well that hides a part of it, but the part where the video played doesnt dissapear and it is on top ov anything else on my form
Will this work for you? Put the control inside of a frameless frame and then set the frame's Visible property to False.
or..
mediaplayer1.top=-9000
To prevent that, try calling its Close method first, and then hiding it by setting the Visible property to False. Actually, it shouldn't matter which order you do it in.Quote:
Originally posted by Alien_poo
yeah.. well that hides a part of it, but the part where the video played doesnt dissapear and it is on top ov anything else on my form