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