Skip to content

Commit cdbc852

Browse files
authored
Merge pull request #623 from telerik/new-kb-dock-toolwindows-taskbar-winforms-6df7e174c9314947a5faf59de37c0ff1
Added new kb article dock-toolwindows-taskbar-winforms
2 parents b831bd0 + 7b42b77 commit cdbc852

File tree

2 files changed

+57
-0
lines changed

2 files changed

+57
-0
lines changed
Lines changed: 57 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,57 @@
1+
---
2+
title: Display ToolWindows on the Taskbar in WinForms
3+
description: Learn how to make detached ToolWindows in your WinForms application visible on the taskbar.
4+
type: how-to
5+
page_title: How to Display ToolWindows on the Taskbar in WinForms
6+
slug: dock-toolwindows-taskbar-winforms
7+
tags: dock, toolwindow, floatingwindowcreated, showintaskbar
8+
res_type: kb
9+
ticketid: 1662442
10+
---
11+
12+
## Environment
13+
14+
|Product Version|Product|Author|
15+
|----|----|----|
16+
|2024.3.806|RadDock for WinForms|[Dinko Krastev](https://www.telerik.com/blogs/author/dinko-krastev)|
17+
18+
## Description
19+
20+
In a WinForms application that uses RadDock, the DocumentWindow can be detached and displayed on the taskbar, but the ToolWindow, when detached, does not show up on the taskbar. This article explains how to make ToolWindows visible on the taskbar.
21+
22+
![WinForms RadDock ToolWindow Taskbar](images/dock-toolwindows-taskbar-winforms001.png)
23+
24+
## Solution
25+
26+
To make detached ToolWindows appear on the taskbar, subscribe to the `FloatingWindowCreated` event of `RadDock` and set the `ShowInTaskbar` property of the window to `true`.
27+
28+
````C#
29+
public Form1()
30+
{
31+
InitializeComponent();
32+
this.radDock1.FloatingWindowCreated += RadDock1_FloatingWindowCreated;
33+
}
34+
35+
private void RadDock1_FloatingWindowCreated(object sender, Telerik.WinControls.UI.Docking.FloatingWindowEventArgs e)
36+
{
37+
e.Window.ShowInTaskbar = true;
38+
}
39+
40+
````
41+
````VB.NET
42+
43+
Public Sub New()
44+
InitializeComponent()
45+
AddHandler Me.radDock1.FloatingWindowCreated, AddressOf RadDock1_FloatingWindowCreated
46+
End Sub
47+
48+
Private Sub RadDock1_FloatingWindowCreated(ByVal sender As Object, ByVal e As Telerik.WinControls.UI.Docking.FloatingWindowEventArgs)
49+
e.Window.ShowInTaskbar = True
50+
End Sub
51+
52+
````
53+
54+
## See Also
55+
56+
* [RadDock Overview](https://docs.telerik.com/devtools/winforms/controls/raddock/overview)
57+
* [Customizing Floating Windows]({%slug winforms/dock/object-model/customizing-floating-windows%})
40.8 KB
Loading

0 commit comments

Comments
 (0)