Click to See Complete Forum and Search --> : controls
Mohammed
Jan 7th, 2000, 01:08 AM
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.
Chuck Sweet
Jan 7th, 2000, 02:24 AM
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.
vbforums.com
Copyright Internet.com Inc., All Rights Reserved.