i display some text in web browser control from my xml file. now i want to
search specific word in web browser control and highlight that text.
to do this thing i am trying to get text from web browser control but in
window mobile web browser control does not support to access body text.
like this in other window application with web browser control.
Expand|Select|Wrap|Line Numbers
- HtmlDocument doc2 = webBrowser1.Document.DomDocument as HtmlDocument;
- StringBuilder html = new StringBuilder(webBrowser1.Document.Body.OuterHtml);
- string key = textBox1.Text;
- String substitution = "<span style='background-color: rgb(255, 255, 0);'>" + key + "</span>";
- html.Replace(key, substitution);
- webBrowser1.Document.Body.InnerHtml = html.ToString();
thanx