How to add ad user control to a tabbedDocument

2 posts, 0 answers
  1. Shirya
    Shirya avatar
    40 posts
    Member since:
    Sep 2008

    Posted 22 Oct 2008 Link to this post

    I have a docking manager, and when a button is clicked, It add a documentPane to my docking manager:

      DocumentPane docPane = new DocumentPane();  
      docPane.Text = "Test Document";  

    I would like to add a user control to every new documentPane,
    do you know how?

  2. Julian Benkov
    Julian Benkov avatar
    1135 posts

    Posted 23 Oct 2008 Link to this post

    Hello Shirya,

    You can add an UserControl to the Controls collection of the DocumentPane:

    DocumentPane docPane = new DocumentPane(); 
    docPane.Text = "Test Document"
    UserControl userControl = new UserControl(); 
    userControl.Dock = DockStyle.Fill; 

    Best wishes,
    Julian Benkov
    the Telerik team

    Check out Telerik Trainer, the state of the art learning tool for Telerik products.
Back to Top