env: VS2019 16.6.3 on Windows Server 2008 R2 x64
Reproduce steps:
- create a normal .net4.0 winform project
- drag a
CheckBoxonForm1 - add a new form (auto name to
Form2) - drag two
LinkLabels and aLabelonForm2, make sure the z-order is:linkLabel1,linkLabel2,label1 - set
linkLabel1andlinkLabel2font toArial, 10.5pt - register the
Loadevent forForm2, write codes:linkLabel2.Text = string.Empty; linkLabel1.Text = "<未选择>"; linkLabel2.Text = "<未选择>"; - modify
Mainmethod contents to follow codes inprogram.cs:Application.EnableVisualStyles(); Application.SetCompatibleTextRenderingDefault(false); new Form1().ShowDialog(); Application.Run(new Form2()); F5, closeForm1, now you can see thelinkLabel1width is not enough
I do reported to Developer Community, but based on my past experience, they prefer close, so i decided post here too.
