views:

547

answers:

4

I want to display a link to help in a message box. By default the text is displayed as a non-selectable string.

+2  A: 

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.

Jeff Yates
+2  A: 

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.

Brad Bruce
+1  A: 

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.

treaschf
+3  A: 

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

schar
Thanks, creative solution that in my case will be sufficient. Really appreciate it. (Upvotes to everyone)
Jeff