Check after removing "<link href='http://domainname/template/style1.css' rel='stylesheet' type='text/css'/>" it seems that you have taken this code from somewhere and this css is not existing (it is just a dummy name), the browser may be trying to load the css before it load the page, as a result of that process (since it is trying to load a content that does not exist) it just hang.
Let me know if that helps.
Nirosh.
"Robin Zhang" <di**********@hotmail.comwrote in message news:BF**********************************@microsof t.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