使用VB.NET/C#的默认MessageBox中的LinkLabel [英] LinkLabel in Default MessageBox using VB.NET/C#
本文介绍了使用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 defaultMessageBox
ofWindows Forms
is displayed through static methodShow
(which has got several overloads).
Since theMessageBox
dialog is constructed internally by theShow
static method, we have no access to this dialog for adding additional elements likeLinkLabel
. So, I think, as an alternative aForm
can be created, which will serve asMessageBox
, according to the requirement and a static methodShow
similar to that ofMessageBox
class, with required overloads, may be defined in this form to instantiate and display theMessageBox (Form)
.
这篇关于使用VB.NET/C#的默认MessageBox中的LinkLabel的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文