Typeof controls of a transfer form

I have two ActiveX controls. The first transfers to the second a form, and the second searchs into this form determinate controls. The problem is that the second ActiveX can't recognized the 'Typeof' this controls like textbox, comand button, label... When I watch one of this controls in the Type column of the Watch Window appears 'Control/Label' in label case, or 'Control/Textbox' in Textbox case.
How can I know the Typeof this control in this case?
abautistatAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Éric MoreauSenior .Net ConsultantCommented:
Check if TypeName can be used instead of TypeOF.
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
abautistatAuthor Commented:
Correct. Thank you for your answer
0
TimCotteeHead of Software ServicesCommented:
Try using the following to check:

If TypeOf Control Is VB.TextBox Then MsgBox (Control.Name & " Is Textbox")
If TypeOf Control Is VB.Label Then MsgBox (Control.Name & " Is Label")
0
Éric MoreauSenior .Net ConsultantCommented:
So you can now Accept this comment as an answer! You have a command button on the green line that will allow you that.
0
abautistatAuthor Commented:
Sorry, I forgot to clik in the correct button.
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Visual Basic Classic

From novice to tech pro — start learning today.