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

Minimize Floating ToolWindow

1 Answer 102 Views
Dock
This is a migrated thread and some comments may be shown as answers.
Berkant Oral
Top achievements
Rank 1
Berkant Oral asked on 09 Mar 2012, 09:48 AM
Hi

I can bring my toolwindow outside the my main program it is working great. Floating function works fine. But Sometime our customer want to some new features. They bring toolwindow outside program and minimize main program they only want to see toolwindow. but they dont see. cause when they minimize main program (main program owner the dock (toowindow)) toolwindow minimize together main form. how can I block this. Forexample if your toolwindow is floating after you want to minimize your main program. I dont want to minimize the toolwindow in this time. How can I do this.

I use Telerik 2011 Q2

Best Regards

1 Answer, 1 is accepted

Sort by
0
Accepted
Julian Benkov
Telerik team
answered on 13 Mar 2012, 10:59 AM
Hi Berkant,

For this scenario you can override the OnActivated method of your parent Form and remove Owner of FloatingWindow:

protected override void OnActivated(EventArgs e)
{
    base.OnActivated(e);
 
    radDock["toolWindow1"].FloatingParent.Owner = null;
}

I hope this helps. Feel free to ask if you have any additional questions. 

Regards,
Julian Benkov
the Telerik team
RadControls for WinForms Q1'12 release is now live! Check out what's new or download a free trial >>
Tags
Dock
Asked by
Berkant Oral
Top achievements
Rank 1
Answers by
Julian Benkov
Telerik team
Share this question
or