AutoScaleMode work not correctly when run with exe file

Ask general questions here.
hungpp2
Posts: 1
Joined: Sat Jul 23, 2016 5:47 am

AutoScaleMode work not correctly when run with exe file

Post by hungpp2 » Sat Jul 23, 2016 6:02 am

When i use codes:
Point tempPoint = new Point(0,0);
System.Windows.Forms.Control.CheckForIllegalCrossThreadCalls = false;
Ranorex.Controls.ProgressForm.ActiveForm.DesktopLocation = tempPoint;
Ranorex.Controls.ProgressForm.ActiveForm.Width = 300;
Ranorex.Controls.ProgressForm.ActiveForm.Height = 130;
Ranorex.Controls.ProgressForm.ActiveForm.AutoScaleMode = AutoScaleMode.None;
I run it with studio . It is work correctly.
2.PNG
2.PNG (72.49 KiB) Viewed 527 times
But when i run with exe i see that "Ranorex.Controls.ProgressForm.ActiveForm.AutoScaleMode = AutoScaleMode.None;" it had't exucuted.
1.PNG
1.PNG (31.38 KiB) Viewed 527 times

User avatar
Support Team
Site Admin
Site Admin
Posts: 11709
Joined: Fri Jul 07, 2006 4:30 pm
Location: Graz, Austria

Re: AutoScaleMode work not correctly when run with exe file

Post by Support Team » Mon Jul 25, 2016 1:12 pm

Hi Hungpp2,

Unfortunately, I wasn't able to reproduce this issue.
In order to analyze this issue in more detail, please write an email to [email protected] with a detailed explanation of your issue.

I'm looking forward to your email.

Sincerely,
Matthias
.
Image