User Profile

Collapse

Profile Sidebar

Collapse
kto
kto
Last Activity: Sep 20 '07, 06:46 PM
Joined: Sep 11 '07
Location:
  •  
  • Time
  • Show
  • Source
Clear All
new posts

  • kto
    replied to Get list of all user controls
    in .NET
    Can you please give some samples? Reflection is totally new to me. Thanks...
    See more | Go to post

    Leave a comment:


  • kto
    started a topic Get list of all user controls
    in .NET

    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.
    See more | Go to post

  • kto
    replied to Casting a string to a user control
    in .NET
    Already tried that after my response earlier but did not work. May have to learn about the reflection that you're talking about. Thanks
    See more | Go to post

    Leave a comment:


  • kto
    replied to Casting a string to a user control
    in .NET
    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...
    See more | Go to post

    Leave a comment:


  • kto
    replied to Casting a string to a user control
    in .NET
    Thanks Plater for the response. However, I did not find an ID property for the User Control. Did you mean its tag?

    Thanks.
    See more | Go to post

    Leave a comment:


  • kto
    started a topic Casting a string to a user control
    in .NET

    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...
    See more | Go to post
No activity results to display
Show More
Working...