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

Header Title bar design vs. live

5 Answers 84 Views
RibbonForm
This is a migrated thread and some comments may be shown as answers.
Marc
Top achievements
Rank 1
Veteran
Marc asked on 15 Jan 2020, 08:16 AM

Hello,

why isn't my header shown like inside the designer?

Thank you for helping.

Regards

5 Answers, 1 is accepted

Sort by
0
Dimitar
Telerik team
answered on 15 Jan 2020, 09:28 AM

Hello, Marc,

In order to display your header the same way as in the designer, you need to set the AllowThemenig property to false. This property disables the Windows theming and the form will instead use the currently selected Telerik theme or Control Default:

this.AllowTheming= false;

Please don't hesitate to ask if you have any further questions.

Regards,
Dimitar
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.
0
Marc
Top achievements
Rank 1
Veteran
answered on 15 Jan 2020, 09:46 AM

Ok, that was extreme simple.

Thank you, Dimitar.

0
Marc
Top achievements
Rank 1
Veteran
answered on 15 Jan 2020, 11:31 AM

If im running the Application with

MainForm = NEW MyForm().
WAIT-FOR System.Windows.Forms.Application:Run(MainForm).

the AllowTheme will be ignored.

 

For all others, that shwon like 

OtherForm:Show().

it works.

0
Marc
Top achievements
Rank 1
Veteran
answered on 16 Jan 2020, 09:12 AM
Any resolution for this?
0
Dimitar
Telerik team
answered on 16 Jan 2020, 01:37 PM

Hello ,Marc,

I have tested a scenario where I created an instance of MyForm and set AllowTheming property before Application.Run(). I have also tested setting AllowTheming property in MyForm's constructor where it is more common and still was not able to reproduce the described behavior. The property was respected in both cases. Am I missing something? Can you please modify my project if you are still encountering the same problem, so that I can investigate further. Thank you in advance for your cooperation.

I am looking forward to your reply.

Regards,
Dimitar
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
RibbonForm
Asked by
Marc
Top achievements
Rank 1
Veteran
Answers by
Dimitar
Telerik team
Marc
Top achievements
Rank 1
Veteran
Share this question
or