Articles in this section
Category / Section

How to load custom controls in WinForms XPTaskBar?

1 min read

Load custom controls

You can host multiple controls of the XP TaskBar box, by placing the panel in the XPTaskBarBox. The PreferredChildPanelHeight property controls the panel’s height. The panel fills the entire XPTaskBarBox, width-wise.

C#

// Sets the preferred height for the child panel placed in the XPTaskBarBox.
this.xpTaskBarBox1.PreferredChildPanelHeight = 100;

VB

'Sets the preferred height for the child panel placed in the XPTaskBarBox.
Me.xpTaskBarBox1.PreferredChildPanelHeight = 100

 

Note:

The PreferredChildPanelHeight property helps to set the height of the panel hosted in the XPTaskBar boxes.

 

PreferredChildPanelHeight specified for XP TaskBarBox is 30

Figure 1: PreferredChildPanelHeight specified for XP TaskBarBox is 30

PreferredChildPanelHeight specified for XP TaskBarBox is 100

Figure 2: PreferredChildPanelHeight specified for XP TaskBarBox is 100

Samples:

C#: XPTaskBar_PanelHeight_C#

VB: XPTaskBar_PanelHeight_VB

Did you find this information helpful?
Yes
No
Help us improve this page
Please provide feedback or comments
Comments (0)
Please sign in to leave a comment
Access denied
Access denied