|
-
Nov 25th, 2001, 06:54 AM
#1
Thread Starter
New Member
Checking ControlType at runtime
I would like to check for control types at runtime.
I tried something like this but I get a run-time error 438
(Object doesn't support this property or method).
Public Sub ControlTypeTest(frm As Form)
Dim m_Ctr As Control
For Each m_Ctr In frm.Controls
Debug.Print m_Ctr.ControlType
Next
End Sub
How can I do this?
Thanks in advance
John,
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
|