Hello,
why isn't my header shown like inside the designer?
Thank you for helping.
Regards
5 Answers, 1 is accepted
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
Ok, that was extreme simple.
Thank you, Dimitar.
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.
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