Tab display ico

5 posts, 0 answers
  1. Michael
    Michael avatar
    22 posts
    Member since:
    Jun 2012

    Posted 17 Jan 2008 Link to this post

    Hi,

    I'm using the DockingManager in conjunction with a mdi parent form and I was wondering if when the tab is created for the mdichild, if also the ico image could be displayed alongside the title?

    Thanks for your help,
    Michael

    P.S. sorry for bombarding your forums with all of my questions.
  2. Julian Benkov
    Admin
    Julian Benkov avatar
    1135 posts

    Posted 18 Jan 2008 Link to this post

    Hi Michael,

    Thank you for writing.

    You can use the following code snippet:

    private void SetImage(Form mdiChild, Image image)  
    {  
        foreach (DocumentPane document in dockingManager1.Documents)  
        {  
            if (document.MdiChild == mdiChild)  
            {  
                document.Image = image;  
                break;  
            }  
        }  

    I hope this was helpful. Please contact us again if you need any further assistance.

    Kind regards,
    Julian Benkov
    the Telerik team

    Instantly find answers to your questions at the new Telerik Support Center
  3. UI for WinForms is Visual Studio 2017 Ready
  4. Michael
    Michael avatar
    22 posts
    Member since:
    Jun 2012

    Posted 21 Jan 2008 Link to this post

    Hi,

    First, thank you for the code snippet, it works great!

    Secondly, how do I get a scrollbar to appear when splitting the layout into multiple panels?

    Thanks again for all of your help,
    Michael
  5. Michael
    Michael avatar
    22 posts
    Member since:
    Jun 2012

    Posted 21 Jan 2008 Link to this post

    Hi,

    First, thank you for the code snippet, it works great!

    Secondly, how do I get a scrollbar to appear when splitting the layout into multiple panels?

    Thanks again for all of your help,
    Michael
  6. Julian Benkov
    Admin
    Julian Benkov avatar
    1135 posts

    Posted 22 Jan 2008 Link to this post

    Hello Michael,

    Thank you for getting back to us.

    The docking component splits multiple panels and decreases its size, but does not provide scrollbar. This is normal behavior for all docking components. Scrollbars may only appear for internal controls in any host IDockable window.

    If you have any additional questions, please contact us.

    Greetings,
    Julian Benkov
    the Telerik team

    Instantly find answers to your questions at the new Telerik Support Center
Back to Top
UI for WinForms is Visual Studio 2017 Ready