473,399 Members | 3,919 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,399 software developers and data experts.

Re: about webbrowser control in csharp(css related)

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
Jun 27 '08 #1
1 2847
Hi Nirosh,

The css file is EXIST, I just hide the true URL of the css file for some commercial reason. Any way, thanks for your reply, is there any other suggestions?
--
Thanks and best regards,

Robin

"Nirosh" <Ni****@News.Comwrote in message news:%2***************@TK2MSFTNGP06.phx.gbl...
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
Jun 27 '08 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: Joey | last post by:
Hi, I am trying to set the style of the TodayDayItem via a css stylesheet. The problem I am having is that even if I set the color to White in the stylesheet it will show up as black on the...
1
by: abcd | last post by:
var oldLen = objListAppAnalysis.options.length; alert(oldLen); var i; for (i=0;i<oldLen;i++) { objListAppAnalysis.options.remove; }
2
by: Alfred Salton | last post by:
Can anyone show me how to set the css class of an HtmlTable control in code on the server? I can't find any indication that the css class is a property of the HtmlTable, HtmlTableRow and...
5
by: Trisha | last post by:
I have a navigation user control navig.ascx that redirects to respective pages based on webcontrols.linkbutton clicks using response.redirect. I would like to control the look and feel of those...
3
by: ivanpais | last post by:
Hi, I have a Web User Control, Lets say "Foo.ascx", that contains a button "btnFoo". I have a Master Page "Bar.master", that has a label "lblBar". This label is exposed by a public property...
0
by: anony | last post by:
Hello. Looking for some help with the best way to achieve a different fore and background color for each parent / child item grouping of the asp.net 2.0 menu control. So in the following...
4
by: cantaladie9 | last post by:
i'm new to php and would like to add a function to my site that allows users to change the style e.g font size and colour etc and then be able to log on at another time to activate their style or...
2
by: kai | last post by:
Hi, What is advantage of Skin over CSS? They both control the appearance of WebControls, and CSS also controls HTML controls. Please help Kai
0
by: danstanhope | last post by:
Hi all, I have an accordion control that is being dynamically created. Everything is working as it should, however when I open up a pane and click another link on the page and then navigate back...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.