如何在窗口应用程序中删除c#中LinkLabel的下划线 [英] How to remove underline of LinkLabel in c# in window application

查看:280
本文介绍了如何在窗口应用程序中删除c#中LinkLabel的下划线的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想在窗口应用程序中删除c#中LinkLabel的下划线。



我选择了属性并选择 -

字体 - underline =false但它不起作用。



告诉我?

I want to remove underline of LinkLabel in c# in window application.

I have choosed the properties and select-
Font-underline="false" but it is not working.

So tell me?

推荐答案

试试 LinkBehavior property。



Try with LinkBehavior 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.


这篇关于如何在窗口应用程序中删除c#中LinkLabel的下划线的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆