Re: how to set WebBrowser's CSS
- From: "Sheng Jiang[MVP]" <sheng_jiang@xxxxxxxxxxxxxxxxxxx>
- Date: Wed, 30 Apr 2008 13:51:06 -0600
You can implement IDocHostUIHandler::GetHostInfo to supply a host CSS, but
there is a bug in .Net 2.0 that prevents your IDocHostUIHandler
implementation being called. You need to use the ActiveX directly, or use a
third party class such as the one in
www.codeproject.com/KB/miscctrl/csEXWB.aspx.
--
Sheng Jiang
Microsoft MVP in VC++
"Robin Zhang" <digitalhuman@xxxxxxxxxxx> wrote in message
news:EF9AE6FC-41BC-4010-82CE-4A2420CD41AD@xxxxxxxxxxxxxxxx
Hi all,
I'm programing with WebBrowser to implement an browser of myself, problem
found when I set html string like this->
webBrowser1.DocumentText = "<html><head><title>xxxxx<title><link
href='http://domainname/template/style1.css' rel='style***'
type='text/css'/></head>some text<html>";
when the program executing, the browser control waitting here for something,
progress bar is frozen, is there any sugguestion about this?
thanks and best reguards,
Robin
.
- References:
- how to set WebBrowser's CSS
- From: Robin Zhang
- how to set WebBrowser's CSS
- Prev by Date: how to set WebBrowser's CSS
- Previous by thread: how to set WebBrowser's CSS
- Index(es):