Skip to content

Commit 3500b08

Browse files
author
KB Bot
committed
Added new kb article dock-toolwindows-taskbar-winforms
1 parent 0f6ef6b commit 3500b08

File tree

1 file changed

+55
-0
lines changed

1 file changed

+55
-0
lines changed
Lines changed: 55 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,55 @@
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: radDock, 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+
## Solution
23+
24+
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`.
25+
26+
````C#
27+
public Form1()
28+
{
29+
InitializeComponent();
30+
this.radDock1.FloatingWindowCreated += RadDock1_FloatingWindowCreated;
31+
}
32+
33+
private void RadDock1_FloatingWindowCreated(object sender, Telerik.WinControls.UI.Docking.FloatingWindowEventArgs e)
34+
{
35+
e.Window.ShowInTaskbar = true;
36+
}
37+
38+
````
39+
````VB.NET
40+
41+
Public Sub New()
42+
InitializeComponent()
43+
AddHandler Me.radDock1.FloatingWindowCreated, AddressOf RadDock1_FloatingWindowCreated
44+
End Sub
45+
46+
Private Sub RadDock1_FloatingWindowCreated(ByVal sender As Object, ByVal e As Telerik.WinControls.UI.Docking.FloatingWindowEventArgs)
47+
e.Window.ShowInTaskbar = True
48+
End Sub
49+
50+
````
51+
52+
## See Also
53+
54+
* [RadDock Overview](https://docs.telerik.com/devtools/winforms/controls/raddock/overview)
55+
* [Customizing Floating Windows]({%slug winforms/dock/object-model/customizing-floating-windows%})

0 commit comments

Comments
 (0)