How to make taskbarbox fill thw whole taskbar area.

Hello There, I have a form with a taskbar left-docked. The taskbar(Navy color) has only one taskbarbox(blue color) which has a gradient panel (red color). I want to the gradient panel to fill the whole available space of the taskbar whenever the form is resized. Please see my attached sample. How can I do it? Thanks you. Lan

WindowsApplication151.zip

2 Replies

MJ Mano J Syncfusion Team April 18, 2006 03:59 PM UTC

Hi Lan, You can achieve this by setting the XPTaskBarBox''s PreferredChildPanelHeight to the xptaskBar''s height as follows in the Form_Resize event private void Form1_Resize(object sender, System.EventArgs e) { this.xpTaskBarBox1.PreferredChildPanelHeight = this.xpTaskBar1.Height - 30; } Here, I have reduced the XPTaskBarBox''s Header height from the xptaskBarBox''s height. Please let me know if this meets your requirements. Thanks for using Essential Tools. Regards, Mano


LM Lan Mo April 19, 2006 03:56 PM UTC

Thank you. That works for me now. >Hi Lan, > >You can achieve this by setting the XPTaskBarBox''s PreferredChildPanelHeight to the xptaskBar''s height as follows in the Form_Resize event > >private void Form1_Resize(object sender, System.EventArgs e) >{ >this.xpTaskBarBox1.PreferredChildPanelHeight = this.xpTaskBar1.Height - 30; >} > >Here, I have reduced the XPTaskBarBox''s Header height from the xptaskBarBox''s height. > >Please let me know if this meets your requirements. Thanks for using Essential Tools. > >Regards, >Mano >

Loader.
Up arrow icon