Articles in this section

How to show TittleBarTextControl and Menubar in WinForms SfForm?

WinForms Form (SfForm) allows you to load any user control into the title bar instead of title bar text by using the TitleBarTextControl property. While adding MenuBar to the form's controls collection when TitleBarTextControl is enabled, it will be docked to top of the form and overlapped with the TitleBarTextControl . This can be resolved by setting top padding for the Form.

public Form1()
{
    InitializeComponent();
    this.Padding = new Padding(0, this.Style.TitleBar.Height, 0, 0);
}

The following screenshot illustrates the TitleBarTextControl in Form,



screenshot illustrates the TextBarTextControl in SfForm

 

The following screenshot illustrates the MenuBar in Form,



screenshot illustrates the MenuBar In SfForm

 

View Sample in GitHub

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