Bighoss617

I have a webbrowser object that I am using as a ticker at the bottom of my application. I use the following marquee html to handle what I am trying to do and I use stringformat to replace the {0} with the text I want. Then I use the webrowser.documenttext = this string and like magic there is my ticker.

<html><head><meta http-equiv="Content-Type" content="text/html; charset=windows-1252"></meta>

<title>New Page 1</title>

</head><body>

<MARQUEE direction="left" width="100%" scrollamount = "5"><STRONG><font size="8" color="black">{0}</font></STRONG></MARQUEE>

</body>

</html>

The problem is in my application I need to update the text that is scrolling when a field is changed. I am getting the string appropriately, but when I go to set that string into the webbrowser.documenttext it will not accept it. I am not sure why, but the webbrowser will not show the new text. Does anyone know what I am doing wrong or any trick of changing the webbrowsers document text.

Thanks in advance,



Re: Windows Forms General Webbrowser.DocumentText Need Help

Peter Ritchie

Post the code that changes the value.