使用VB.NET/C#的默认MessageBox中的LinkLabel [英] LinkLabel in Default MessageBox using VB.NET/C#

查看:128
本文介绍了使用VB.NET/C#的默认MessageBox中的LinkLabel的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好,

如何使用 VB.NET/C#在获胜表格的默认消息框中中使用链接标签?因此,可以将用户定向到特定的链接(即电子邮件地址).
请帮我实现这个目标.谢谢

问候,
itz.irshad

Hi Guys,

How can we use a link label in default message box of win forms using VB.NET/C# ? So, user can be directed to specific link (i.e. email address).
Please, help me to achieve this. Thanks

Regards,
itz.irshad

推荐答案

通过静态方法Show (具有多个重载)显示Windows Forms的默认MessageBox . 由于MessageBox 对话框是通过Show 静态方法在内部构造的,因此我们无权访问此对话框来添加诸如LinkLabel的其他元素.因此,我认为,根据需要,可以创建Form作为MessageBox的替代方法,并且类似于MessageBox 类的静态方法Show 可能具有所需的重载.以这种形式定义以实例化并显示MessageBox (Form).
The default MessageBox of Windows Forms is displayed through static method Show (which has got several overloads).
Since the MessageBox dialog is constructed internally by the Show static method, we have no access to this dialog for adding additional elements like LinkLabel. So, I think, as an alternative a Form can be created, which will serve as MessageBox, according to the requirement and a static method Show similar to that of MessageBox class, with required overloads, may be defined in this form to instantiate and display the MessageBox (Form).


这篇关于使用VB.NET/C#的默认MessageBox中的LinkLabel的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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