WebBrowser Control
-
Hello, I am using a WebBrowser control, that is there to display the HTML file. It has some links. The problem is, I don't want those links to change the colour when user clicks on them. I supress the link from poping up, but the colour on the hyperlink changes. Is there a way of keeping the same blue colour? Thank you.
-
Hello, I am using a WebBrowser control, that is there to display the HTML file. It has some links. The problem is, I don't want those links to change the colour when user clicks on them. I supress the link from poping up, but the colour on the hyperlink changes. Is there a way of keeping the same blue colour? Thank you.
Here's a style fragment that will cause the hyperlink to always render in blue:
A:link { color: #0000FF; text-decoration: none; }
A:visited { color: #0000FF; text-decoration: none; }
A:hover { color: #0000FF; text-decoration: underline }
A:active { color: #0000FF; text-decoration: none }/ravi
This is your brain on Celcius Home | Music | Articles | Freeware | Trips ravib(at)ravib(dot)com
-
Here's a style fragment that will cause the hyperlink to always render in blue:
A:link { color: #0000FF; text-decoration: none; }
A:visited { color: #0000FF; text-decoration: none; }
A:hover { color: #0000FF; text-decoration: underline }
A:active { color: #0000FF; text-decoration: none }/ravi
This is your brain on Celcius Home | Music | Articles | Freeware | Trips ravib(at)ravib(dot)com
-
Yeah, but this has to be done in the document itself. I guess there is no property on the control itself to control the hyperlink colours. Thanks.
-
-
Don't I need a style sheet for that? Or I can do it the same way I am setting the background colour for the webbrowser control. How would the HTML contents look like? Thank you.