Approved
Last Updated: 29 Mar 2016 14:18 by ADMIN
ADMIN
Dess | Tech Support Engineer, Sr.
Created on: 13 Nov 2015 15:45
Category: Form
Type: Bug Report
1
FIX. RadForm - application stopped working on Windows Vista Ultimate due to invalid rectangle of the form
To reproduce: add a RadForm and start the application.

Workaround:
public partial class Form1 : RadForm
{
    public Form1()
    {
        InitializeComponent();
        
    }

    protected override void OnLoad(Size desiredSize)
    {
        this.ElementTree.InitializeRootElement();
        this.RootElement.ApplyShapeToControl = false;
        base.OnLoad(desiredSize);
    }

    protected override void OnLoad(EventArgs e)
    {
        base.OnLoad(e);
        this.RootElement.ApplyShapeToControl = true;
    }
}
Attached Files:
(Total attached files size should be smaller than 20mb. Allowed extensions: .zip, .rar, .jpg, .png, .gif)
2 comments
ADMIN
Stefan
Posted on: 19 Feb 2016 09:44
As I advised on the other comment of yours, it will be best to contact our support team to discuss your issue.

Thank you.
Christopher
Posted on: 18 Feb 2016 23:18
I am having this problem too. I was tasked with updating an old enterprise application because it was hanging on windows 10 and would eventually crash. I found it was do to this line in the design.cs files this.RootElement.ApplyShapeToControl = true;

if I comment out the line in the design file it will work however, you can not make any changes to the form or it is overridden(and rightly so).