Dynamic views

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Jesper DK

    #1

    Dynamic views

    Hi,

    I'm writing a windows explorer like application. The GUI
    is divided by a vertical splitter. To the left I have a
    tree control. To the right of the splitter I would like
    to display one of several different user controls
    according to what is selected in the tree control. Now, I
    can do this by placing all of my different user controls
    on the form and then use .Show() and .Hide() on the
    controls. However, I do not fancy this technique, Isn't
    there a more elegant way of doing this.

    Another thing, If I instantiate these user controls
    dynamically and place them on the form, should they be
    placed on a panel?. Where should I store the reference to
    the user control.

    Thank you in advance.
    Best regards Jesper.
Working...