更新时间:2023-10-19 18:39:40
试试LinkBehavior
property。
Try withLinkBehavior
property.
Me.linkLabel1.LinkBehavior = System.Windows.Forms.LinkBehavior.NeverUnderline;
更多详情:
http://msdn.microsoft.com/en- us / library / system.windows.forms.linklabel.linkbehavior(v = VS.71).aspx [ ^ ]
干杯!
More details here:
http://msdn.microsoft.com/en-us/library/system.windows.forms.linklabel.linkbehavior(v=VS.71).aspx[^]
Cheers!
试试这个:
Try this:
public void RemoveUnderline(LinkLabel link)
{
link.LinkBehavior = System.Windows.Forms.LinkBehavior.NeverUnderline;
}
只需转到表单部分并转到属性,在系统默认状态中搜索链接行为,单击它并选择从不强调。
表单>属性>链接行为>选择系统默认值并将其更改为永不下划线。
Simply go to the form section and go properties,search "link behavior" its on "system default state" click on it and select "never underline".
Form>properties>link behavior>select system default and change it into never underline.