Can I determine what type of control I've landed on from the control
itself?
e.g. can I have a function like the following?
Private Function GetControlType(ctrl as Control) as String
if ctrl <is a textbox> Then
GetControlType = "TextBox"
ElseIf ctrl <is a checkbox> Then
GetControlType = "CheckBox"
....
End Sub
Is there a property that reliably exists in every control that tells
me its type?
thanks,
gary
Jezebel - 13 Mar 2006 22:19 GMT
If TypeOf ctrl is TextBox then
...
> Can I determine what type of control I've landed on from the control
> itself?
[quoted text clipped - 15 lines]
> thanks,
> gary
Gary Hillerson - 14 Mar 2006 05:13 GMT
Thanks, Jezebel.
>If TypeOf ctrl is TextBox then
> ...
[quoted text clipped - 18 lines]
>> thanks,
>> gary