Click here to Skip to main content
15,898,371 members
Home / Discussions / C#
   

C#

 
GeneralRe: adress standardization Pin
musefan8-Jan-09 1:49
musefan8-Jan-09 1:49 
GeneralRe: adress standardization Pin
musefan8-Jan-09 1:55
musefan8-Jan-09 1:55 
GeneralRe: adress standardization Pin
Eddy Vluggen8-Jan-09 1:55
professionalEddy Vluggen8-Jan-09 1:55 
GeneralRe: adress standardization Pin
lawrenceinba8-Jan-09 2:02
lawrenceinba8-Jan-09 2:02 
GeneralRe: adress standardization Pin
Eddy Vluggen8-Jan-09 3:39
professionalEddy Vluggen8-Jan-09 3:39 
GeneralRe: adress standardization Pin
lawrenceinba8-Jan-09 4:34
lawrenceinba8-Jan-09 4:34 
AnswerRe: adress standardization Pin
Henry Minute8-Jan-09 1:44
Henry Minute8-Jan-09 1:44 
QuestionWeb Browser Control events Pin
Nagaraj Muthuchamy7-Jan-09 23:25
professionalNagaraj Muthuchamy7-Jan-09 23:25 
Hi,

I am using WebBrowser Control and passing the url at run time.

I want to insert some text or javascript into the body of the web page being loaded in the browser.

I tried like below.
private void webBrowser1_DocumentCompleted(object sender, WebBrowserDocumentCompletedEventArgs e)        {            WebBrowser browse = (WebBrowser)sender;            if (!(webBrowser1.Document.Body.InnerHtml.Contains("Hello")))            {                webBrowser1.Document.Body.InnerHtml = browse.Document.Body.InnerHtml + "<script type='text/javascript'>				var Hello;		var i;				var totalTable  = document.getElementsByTagName('table').length;				for(i=0;i < totalTable; i++)		{		    document.getElementsByTagName('table')[i].id  = 'name' + i;		}		function myfun()		{		   		      this.style.border  = 'solid 5px Red';		}		function myfun1()		{		   		      this.style.border  = 'none';		}		for(i=0;i < totalTable; i++)		{		    document.getElementsByTagName('table')[i].onmouseover  = myfun;		    document.getElementsByTagName('table')[i].onmouseout  = myfun1;		}    </script>";            }        }


But, This is not working. This event is fired many times for single page.

Thanks,
Nagaraj

"We owe a lot to the Indians, who taught us how to count, without which no worthwhile scientific discovery could have been made!"
- Albert Einstein

QuestionHow to open a excel2007 file in read-only mode? Pin
llllllkk7-Jan-09 23:22
llllllkk7-Jan-09 23:22 
AnswerRe: How to open a excel2007 file in read-only mode? Pin
EliottA8-Jan-09 2:37
EliottA8-Jan-09 2:37 
GeneralRe: How to open a excel2007 file in read-only mode? Pin
llllllkk8-Jan-09 3:46
llllllkk8-Jan-09 3:46 
GeneralRe: How to open a excel2007 file in read-only mode? Pin
EliottA8-Jan-09 3:48
EliottA8-Jan-09 3:48 
GeneralRe: How to open a excel2007 file in read-only mode? Pin
llllllkk8-Jan-09 15:38
llllllkk8-Jan-09 15:38 
GeneralRe: How to open a excel2007 file in read-only mode? Pin
EliottA9-Jan-09 2:28
EliottA9-Jan-09 2:28 
GeneralRe: How to open a excel2007 file in read-only mode? Pin
llllllkk9-Jan-09 4:15
llllllkk9-Jan-09 4:15 
GeneralRe: How to open a excel2007 file in read-only mode? Pin
EliottA9-Jan-09 4:21
EliottA9-Jan-09 4:21 
AnswerRe: How to open a excel2007 file in read-only mode? Pin
llllllkk9-Jan-09 4:28
llllllkk9-Jan-09 4:28 
Questioncreate customize control Pin
Naveed7277-Jan-09 23:09
Naveed7277-Jan-09 23:09 
AnswerRe: create customize control [modified] Pin
Lev Danielyan7-Jan-09 23:25
Lev Danielyan7-Jan-09 23:25 
JokeRe: create customize control Pin
DaveyM697-Jan-09 23:58
professionalDaveyM697-Jan-09 23:58 
GeneralRe: create customize control Pin
Lev Danielyan8-Jan-09 0:01
Lev Danielyan8-Jan-09 0:01 
Questionincreasing the states(input) in the below c# code Pin
lawrenceinba7-Jan-09 22:59
lawrenceinba7-Jan-09 22:59 
AnswerRe: increasing the states(input) in the below c# code Pin
Dragonfly_Lee8-Jan-09 19:59
Dragonfly_Lee8-Jan-09 19:59 
GeneralRe: increasing the states(input) in the below c# code Pin
lawrenceinba8-Jan-09 21:30
lawrenceinba8-Jan-09 21:30 
GeneralRe: increasing the states(input) in the below c# code Pin
Dragonfly_Lee8-Jan-09 21:37
Dragonfly_Lee8-Jan-09 21:37 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.