This is a migrated thread and some comments may be shown as answers.

Set RadDock MDI document window image

1 Answer 51 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Robert
Top achievements
Rank 1
Robert asked on 19 May 2013, 05:44 AM
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.

1 Answer, 1 is accepted

Sort by
0
Stefan
Telerik team
answered on 22 May 2013, 08:25 AM
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.
 

Regards,
Stefan
Telerik
RadChart for WinForms is obsolete. Now what?
Tags
General Discussions
Asked by
Robert
Top achievements
Rank 1
Answers by
Stefan
Telerik team
Share this question
or