|
-
Jul 14th, 2000, 08:07 AM
#1
Hello all,
I know that it is possible to go through every control on a form, like this:
Dim objControl As Control
Dim intCounter As Integer
For Each objControl in Form1.Controls
objControls.Caption = "Control" & intCounter
inCounter = intCounter + 1
Next
What about going through the Forms in a project?
This doesn't work though:
Dim aform As Form
For Each aform In ProjectName
If aform.Name <> "Form1" Then
aform.Enabled = False
End If
Next
Is there a way to go through forms in a project like going through controls on a form?
Thanks
Sunny L.
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
|