I want to display a link to help in a message box. By default the text is displayed as a non-selectable string.
You can use the LinkLabel
control on your own Form
for this. Unfortunately, the MessageBox
form cannot be customized in this way, so you would need to create your own Form
to mimic the MessageBox
for your purposes.
MessageBox won't do that. You'll either need to use the TaskDialog (introduced in Vista) or create your own dialog.
--Edit--
There are ways to fake the task dialog on XP. There are a few articles on CodeProject.com that I've used in the past.
You have to create your own form, instead of the built-in MessageBox, and you can use a LinkLabel
on it.
However on the built-in MessageBox a Help button could be displayed among the buttons.
One option is display the url in the message box, along with a message and provide the help button that takes you to that url
MessageBox.Show(
"test message",
"caption",
MessageBoxButtons.YesNo,
MessageBoxIcon.Information,
MessageBoxDefaultButton.Button1,
MessageBoxOptions.LeftAlign,
**"http://google.com"**,
"keyword")
HTH