Quantcast
Channel: Telerik Forums RSS
Viewing all articles
Browse latest Browse all 78072

how to auto hide radtitle bar in fullscreen form

$
0
0
Hello Mohammad,

Thank you for writing. 

You can detect when the form is maximized and hide its title bar programmatically. Here is a sample code snippet:
public Form1()
{
    InitializeComponent();
 
    this.SizeChanged+=Form1_SizeChanged;
}
 
private void Form1_SizeChanged(object sender, EventArgs e)
{
    if (this.WindowState == FormWindowState.Maximized)
    {
        this.FormElement.TitleBar.Visibility = Telerik.WinControls.ElementVisibility.Collapsed;
    }
    else
    {
     
        this.FormElement.TitleBar.Visibility = Telerik.WinControls.ElementVisibility.Visible;
    }
}

I hope this information helps. Should you have further questions I would be glad to help.

Regards,
Dess
Telerik by Progress
Check out the Windows Forms project converter, which aids the conversion process from standard Windows Forms applications written in C# or VB to Telerik UI for WinForms.For more information check out this blog post and share your thoughts.

Viewing all articles
Browse latest Browse all 78072

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>