|
-
Apr 23rd, 2003, 01:46 AM
#2
Fanatic Member
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()
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|