1

I have a string which has a hyperlink:

string msg = @"Welcome to <a href=\"http://google.com\">Google</a> ";

when I use this in a messagebox, the hyperlink does not show as a link. Is it possible to use a hyperlink in this way?

cosmarchy
  • 686
  • 3
  • 9
  • 21

2 Answers2

1

try removing the ampersand (@)

string msg = "Welcome to <a href=\"http://google.com\">Google</a> ";
BIBD
  • 15,107
  • 25
  • 85
  • 137
LiverpoolOwen
  • 806
  • 2
  • 10
  • 25
  • 2
    I think you've missed the boat on this one. That string was exactly what OP had originally. What OP is *trying* to do is parse this string to display an actual html link. – crthompson Apr 16 '15 at 20:50
0

I RECOMMEND creating your own dialog easily by creating a new form then dragging a LinkLabel into it, and you can change the LinkLabel properties to redirect you to whatever you want.