This is a migrated thread and some comments may be shown as answers.

Form Border

1 Answer 291 Views
Form
This is a migrated thread and some comments may be shown as answers.
Kashif
Top achievements
Rank 1
Kashif asked on 15 Oct 2019, 04:14 PM

Hello Admins,

 

I'm using one of my form's BorderStyle prperty to none.

When this form is shown no border is displayed.

I want to show only border,

Is it possible to hide only titlebar of the form

or

How to Show the Border/Edges of the form Like in Fluent Theme

1 Answer, 1 is accepted

Sort by
0
Dess | Tech Support Engineer, Principal
Telerik team
answered on 16 Oct 2019, 11:29 AM

Hello, Kashif,      

In Fluent theme the title bar is actually visible. It just has identical color as the form itself.

If you need to hide the title-bar itself, it is necessary to set the RadForm.FormElement.TitleBar.Visibility property to Collapsed.

        public RadForm1()
        {
            InitializeComponent();
            
            this.AllowTheming = true;
            this.FormElement.TitleBar.Visibility = ElementVisibility.Collapsed;
        }

Otherwise, set the RadForm.AllowTheming property to false and set the RadForm.BackColor to White:

        public RadForm1()
        {
            InitializeComponent();
            
            this.AllowTheming = false;
            this.BackColor = Color.White;  
        }

I hope this information helps. If you need any further assistance please don't hesitate to contact me. 

Regards,
Dess | Tech Support Engineer, Sr.
Progress Telerik

Get quickly onboarded and successful with your Telerik and/or Kendo UI products with the Virtual Classroom free technical training, available to all active customers. Learn More.
Tags
Form
Asked by
Kashif
Top achievements
Rank 1
Answers by
Dess | Tech Support Engineer, Principal
Telerik team
Share this question
or