Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 357
  • Last Modified:

Does Class recognise typeof control if the control is Flex-Grid

I have written a class which refers to a form's Control
collection. The form contains a Flex Grid control. While checking typeOf Property in the Control's collection I am ubnable to check the Flex Grid. Code is
If TypeOf Ctrl Is MsFlexGrid Then
  The Complier Gives error saying User Data type not defined. How to over come this error. Please Dont't suggest the code in which code depends on the Name of the Control. Thanking you.
Regards,
        bhatul
0
bhatul
Asked:
bhatul
1 Solution
 
Nitin SontakkeDeveloperCommented:
Is the class declaration and the form part of the same project?

If not, include reference to the flex grid control in the class project too.

0
 
Éric MoreauSenior .Net ConsultantCommented:
Use TypeName (which returns a string) instead of TypeOf.

If TypeName(Ctrl) = "MsFlexGrid" Then
0
 
MoondancerCommented:
ATTENTION bhatul -->  Please click the following link and BRING ALL YOUR OPEN QUESTIONS TO A CONCLUSION.
 
Administration will be contacting you in this regard if they remain open for another 7 days.  You have nine (9) questions to resolve.

http://www.experts-exchange.com/jsp/memberProfile.jsp?mbr=bhatul&showQHistory=true

Moondancer - EE Moderator
0
Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 
Éric MoreauSenior .Net ConsultantCommented:
My comment is an appropriate solution here!
0
 
Éric MoreauSenior .Net ConsultantCommented:
This question appears to be abandoned. A question regarding it will be left in the CleanUp
area; if you have any comment about the question, please leave it here.

Unless there is objection or further activity, one of the moderators will be asked to accept the comment
of <emoreau>.

The link to the Community Support area is:
http://www.experts-exchange.com/jsp/qList.jsp?ta=commspt

DO NOT ACCEPT THIS COMMENT AS AN ANSWER.
0
 
NetminderCommented:
0

Featured Post

Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now