|
-
Jan 7th, 2000, 02:08 AM
#1
Thread Starter
Junior Member
How can I detect using vb:
1/ how many forms in project (vb project)?
2/ how many control, and name of each one, ate in each form?
Thank you,
Mohammed.
-
Jan 7th, 2000, 03:24 AM
#2
Member
With every project, there is a FORMS collection and on every form there is a CONTROLS collection, and in every user control there is a CONTROLS collection. These individual items can be accessed by either using a
For Each...Next loop
or
For i = 0 to FORMS.Count (CONTROLS.Count)
I hope this is what you were looking for.
Chuck Sweet
------------------
To err is human, but to apologize frequently is embarassing.
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
|