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

RadForm FormStyle None Maximized

2 Answers 89 Views
Form
This is a migrated thread and some comments may be shown as answers.
Matt
Top achievements
Rank 2
Matt asked on 04 Apr 2020, 09:37 AM

Hi,

I am trying out 2019 R2 to see if it works ok before upgrading from 2017 R1.

I have noticed a problem on a RadForm when setting the formstyle to none then maximizing the form, the top and left are -8. Any object put at the top of the form is too high and too far to the left. Is there a reason for this change like a shadow on the form or something I'm missing

It worked as expected in 2017 R1.

Kind rgeards,

Matt.

2 Answers, 1 is accepted

Sort by
0
Nadya | Tech Support Engineer
Telerik team
answered on 08 Apr 2020, 12:56 PM

Hello Matt,

Thank you for the provided information.

In order to maximize RadForm correctly, it is necessary to just set the AllowTheming property of the form to false. Please refer to the following code snippet:

publicpartialclassRadForm1 : RadForm { public RadForm1() { InitializeComponent(); this.AllowTheming = false; } protected override void OnLoad(EventArgs e) { base.OnLoad(e); this.FormBorderStyle = FormBorderStyle.None; this.WindowState = FormWindowState.Maximized; }

}

I attached my sample project for your reference. Could you please refer to it and see how it works?

I would like to mention that currently, the latest version is the R12020 version. By upgrading to the latest version you can benefit from all the introduced changes and improvements of our controls.

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

Regards,
Nadya
Progress Telerik

Progress is here for your business, like always. Read more about the measures we are taking to ensure business continuity and help fight the COVID-19 pandemic.
Our thoughts here at Progress are with those affected by the outbreak.
0
Matt
Top achievements
Rank 2
answered on 09 Apr 2020, 08:07 AM

Hi,

That worked, thank you!

Tags
Form
Asked by
Matt
Top achievements
Rank 2
Answers by
Nadya | Tech Support Engineer
Telerik team
Matt
Top achievements
Rank 2
Share this question
or