Set RadDock MDI document window image

2 posts, 0 answers
  1. Robert
    Robert avatar
    1 posts
    Member since:
    May 2013

    Posted 19 May 2013 Link to this post

    Is there a way to set RadDock MDI document window image property at runtime? I have a button that opens an existing form in MDI mode in a new document window and would like to set the image property so the icon appears on the tab. Im using VB 2010.
  2. Stefan
    Stefan avatar
    2891 posts

    Posted 22 May 2013 Link to this post

    Hello Robert,

    Thank you for writing.

    To do that, you can use the DockWindowAdded event as follows:
    void radDock1_DockWindowAdded(object sender, DockWindowEventArgs e)
        HostWindow hostWindow = e.DockWindow as HostWindow;
        if (hostWindow != null)
            hostWindow.Image = hostWindow.MdiChild.Icon.ToBitmap();

    I hope this helps.

    RadChart for WinForms is obsolete. Now what?
  3. DevCraft R3 2016 release webinar banner
Back to Top