SfForm shows shadow and tilte bar bottom line not colorable

Hello,
I've just copied your code and there is a weird shadow around the whole form and i can't change the bottom white line of the title bar.

Code from here under Appearance.

Regards

3 Replies 1 reply marked as answer

YO Youki June 14, 2021 08:38 PM UTC

Searched for another solution online and found a link to your documentation. :)
Think i could colorize the bottom line in the form_paint?! I'm going to try it.

Regards

//Customize the shadow for active state
this.Style.ShadowOpacity = 0;

//Customize the shadow for inactive state
this.Style.InactiveShadowOpacity = 0;


YO Youki June 15, 2021 07:33 AM UTC

Hi,

There is no solution to remove the title bar's bottom line?
It's not part of the client area, so i can't overpaint it.

Regards


MA Mohanram Anbukkarasu Syncfusion Team June 15, 2021 11:39 AM UTC

Hi Youki, 

Thanks for contacting Syncfusion support.  

You can resolve this by setting same color for the properties Style.TitleBar.BackColor and Style.TitleBar.BottomBorderColor as shown in the following code example.  

Code example :  

//Sets the back color and fore color of the title bar. 
this.Style.TitleBar.BackColor = Color.Black; 
this.Style.TitleBar.ForeColor = Color.White; 
 
//Set bottom border color for TitleBar 
this.Style.TitleBar.BottomBorderColor = Color.Black; 

Please let us know if you require any other assistance from us.  

Regards, 
Mohanram A. 


Marked as answer
Loader.
Up arrow icon