How to customize WinForms Editor when URL or hyperLink is loaded?
Customize the MessageBoxAdv
At present Hyperlink cannot be loaded in MessageBoxAdv and It can be achieved by creating Custom control inherited by MetroForm and loading LinkLabel control in it.
C#
//To show hyperlink MessageBoxExt.ShowHyperLink = true; //Displays the MessageBox text MessageBoxExt.MessageText = "URL MessageBox"; // Shows the Text of URL MessageBoxExt.URLText = "Help"; MessageBoxExt.StartPosition = FormStartPosition.CenterScreen; //Describes the action when link is clicked MessageBoxExt.HyperLink.LinkClicked += new LinkLabelLinkClickedEventHandler(HyperLink_LinkClicked); MessageBoxExt.ShowDialog();
VB
'To show hyperlink MessageBoxExt.ShowHyperLink = True 'Displays the MessageBox text MessageBoxExt.MessageText = "URL MessageBox" ' Shows the Text of URL MessageBoxExt.URLText = "Help" MessageBoxExt.StartPosition = FormStartPosition.CenterScreen 'Describes the action when link is clicked AddHandler MessageBoxExt.HyperLink.LinkClicked, AddressOf HyperLink_LinkClicked MessageBoxExt.ShowDialog()
Figure 1. Customize MessageBoxAdv when URL/HyperLink is loaded with image
Samples:
C#: How to customize MessageBoxAdv when URL/HyperLink is loaded?
VB: How to customize MessageBoxAdv when URL/HyperLink is loaded?
Conclusion
I hope you enjoyed learning on how to customize WinForms MessageBox when URL or hyperLink is loaded.
You can refer to our WinForms MessageBox feature tour page to know about its other groundbreaking feature representations and documentation, and how to quickly get started for configuration specifications.
For current customers, you can check out our components from the License and Downloads page. If you are new to Syncfusion, you can try our 30-day free trial to check out our other controls.
If you have any queries or require clarifications, please let us know in the comments section below. You can also contact us through our support forums, Direct-Trac, or feedback portal. We are always happy to assist you!