|
-
Sep 11th, 2003, 06:38 AM
#1
Thread Starter
Junior Member
Enabling/Disabling all of object type on a form
I'm trying to enable/disable all the objects of a certain type on my form, such as all the text boxes. I'm doing this in a similar method to how the proper way to close out of VB 5/6 was.
Here is what I have
dim txt as TextBox
For Each txt in Me
txt.Enabled = False
Next
Now, the Me part doesn't work, so what do I put in place of that so it knows to disable all the text boxes on that form? It's the only form I have so far, and I've tried the form name but it's not working.
Your help is appreciated. Thanks.
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
|