I think Chart change FormSize in HighDPI PC.
It doesn't come up in my desktop PC.
Why is it Happend ?
And, How do it Fix?
1. Form Loaded, Chart is not create yet.
(Back screen is Excel) 2. Button1Clicked, Chart is created and Add in Panel.
FormSize is shrunk and location Changed. 3. Button2Clicked, Chart is Cleared in Panel.
FormSize and Location become normal. 4. Button1Clicked again, Chart is created and Add in Panel.
But FormSize and Location still NORMAL.
Code: Select all
public partial class Form1 : Form
{
public Form1()
{
InitializeComponent();
}
private void button1_Click(object sender, EventArgs e)
{
var lChart = new Arction.WinForms.Charting.LightningChartUltimate();
this.splitContainer1.Panel1.Controls.Add(lChart);
}
private void button2_Click(object sender, EventArgs e)
{
this.splitContainer1.Panel1.Controls.Clear();
}
}
My Desktop PC
OS: Win7 64bit
Display Size:23inch
Resolution:1920*1080
DPI 96pixel/inch
HighDPI PC
OS: Win10 64bit
Display Size:13.3inch
Resolution:1920*1080
DPI 166pixel/inch