|
-
Jul 16th, 2003, 08:03 AM
#1
Thread Starter
Hyperactive Member
CType question
I've been a good boy and have Option Strict = on. However I've now run into a snag.
I need to access a property from a dynamically added user-control, normally I would use something like
VB Code:
CType(usrControl,usrControlType).Property = Value
Problem is, in the bit of code I need to do this, I do not know what type of control I am accessing.
Is there I way I can get the type for use with CType? I've tried a couple of ideas but no success yet.
thanks
-
Jul 16th, 2003, 10:15 AM
#2
Frenzied Member
-
Jul 16th, 2003, 10:17 AM
#3
Thread Starter
Hyperactive Member
Can you briefly explain what reflection is please?
-
Jul 16th, 2003, 09:30 PM
#4
Frenzied Member
Reflection is the ability to get an objects type, methods and members at runtime. Thats how intellisense is implemented. It is a powerful feature. You can even create a new exe or dll at runtime.
-
Jul 17th, 2003, 02:29 AM
#5
Thread Starter
Hyperactive Member
I've worked around my problem but I deffo think I'll look into reflection. I found some good stuff from searching with google but it all seemed far too much for the 'simple' result I want.
Still, thanks for your help
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
|