User Profile
Collapse
-
Can you please give some samples? Reflection is totally new to me. Thanks... -
Get list of all user controls
Is there any way to get a list of all user controls (these are not controls on a form) within a project so that they can be looped through for any purposes? VB Express 2005/WinXP
Thanks in advance. -
Already tried that after my response earlier but did not work. May have to learn about the reflection that you're talking about. ThanksLeave a comment:
-
Using the Name property would make sense. However, I will still need to instantiate it as a New type of user control as in my samples for the hard-coded method. Do you have any pointers how to accomplish that? Thanks
i.e.
This did not work
Dim tCtrl as UserControl
tCtrl.Name = "userCtrl" & 2DigitString
userCtrl = New tCtrl
Me.PanelBox.Con trols.Add(userC trl)
How...Leave a comment:
-
Thanks Plater for the response. However, I did not find an ID property for the User Control. Did you mean its tag?
Thanks.Leave a comment:
-
Casting a string to a user control
I have user controls named as userCtrlxx where xx is a two-digit number. I'm adding these controls dynamically based on certain strings that are also two-digit numbers parsed from strings. I've tried using CType and DirectCast but no lucks so far.
Has anyone done things like that? Any suggestions? Thank you in advance.
Sample codes:
...
Dim userCtrl As UserControl
'Adding based upon a certain...
No activity results to display
Show More
Leave a comment: