Display website news in vb.net form...

lidds

Well-known member
Joined
Oct 19, 2004
Messages
122
Programming Experience
Beginner
I have a welcome form in my app. and what I want to be able to do is link a control to display a custom news page from my domain that only have text in it. Very simular to the VS welcome page, that gives you information. I know you can use the webbrowser control, however there is no way to change the background colour on it, or border option. Is there another way of acheiving this???

Thanks in advance

Simon
 
The webbrowser control only display webpages, it doesn't have a border. If you want another backcolor you change the backcolor of the webpage that is displayed. If you need border you can put it in a Panel and set this border.
 
You might also be able to pull off changing the webpage backcolor after it has loaded (DocumentCompleted event). Try setting the Document.BackColor or get the Document.Body.Style string and append ";background-color:lightyellow" (and write the styles back to Style prop). Depending on how the webpage is coded one of these could work.
 
Back
Top