VBGamer |
|||||||||||||||||||||||||||
Determining a control type... Mattman (1 reply, 0 views) (2001-Feb-13) Let's say I have the following definition:
Dim ctrl As Control
How might I determine the control's type? For example, I want to be able to do something similar to the following (though the following code is made up :P)
Select Case ctrl.ControlType
Case vbForm
' Code here.
Case vbTextBox
' Code here.
Case vbLabel
' Code here.
End Select
Thanks in advance!
Matt Huggins
|