Results 1 to 5 of 5

Thread: [RESOLVED] [2008] Treeview & dynamic user controls

Threaded View

  1. #3

    Thread Starter
    New Member
    Join Date
    Feb 2008
    Location
    Switzerland
    Posts
    4

    Re: [2008] Treeview & dynamic user controls

    Atheist, thanks for your reply.

    Unfortunately i don't fully understand what you are talking about

    I understand that at the moment i only return a name, but based on this name i want to create a new object from the type of the appropriate user control. So if the name is ucDatabase the code for generating my user control should be something like:

    Code:
    Dim myNewControl As ucDatabase
    Me.pcRight.Controls.Add(myNewControl)
    But i am unsure how to solve my problem when i don't know the type of object if have to create (Dim myNewControl As ......) becaused it's based on the name of the NodeName.

    I added my project for better understanding. Maybe you or someone else can help me out.

    Thanks for any advice
    voidpixels
    Attached Files Attached Files
    Last edited by voidpixels; Feb 13th, 2008 at 10:31 AM.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width