Does anyone no what the command is to delte an object (such as a button)??? I just started VB .net :p Please hurry!
Printable View
Does anyone no what the command is to delte an object (such as a button)??? I just started VB .net :p Please hurry!
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()
Thanx!