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='stylesheet' 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
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" wrote in message news:EF9AE6FC-41BC-4010-82CE-4A2420CD41AD@microsoft.com... 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='stylesheet' 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