TECHNOLOGIES
FORUMS
JOBS
BOOKS
EVENTS
INTERVIEWS
Live
MORE
LEARN
Training
CAREER
MEMBERS
VIDEOS
NEWS
BLOGS
Sign Up
Login
No unread comment.
View All Comments
No unread message.
View All Messages
No unread notification.
View All Notifications
Answers
Post
An Article
A Blog
A News
A Video
An EBook
An Interview Question
Ask Question
Forums
Monthly Leaders
Forum guidelines
Aisha Srivastava
NA
230
28.5k
How to highlight selected text in web browser in win form
Jan 8 2015 5:44 AM
//Highlight selected Text
// Problem-I have current selection method but could not highlight the current selection..
Please help me out...really stuck....
If need any correction in given code please make it...
public void highlightselectedtext()
{
IHTMLDocument2 htmldocument = editorWebBrowser.Document.DomDocument as IHTMLDocument2;
IHTMLSelectionObject currentSelection = htmldocument.selection;
if (currentSelection != null)
{
IHTMLTxtRange range = currentSelection.createRange() as IHTMLTxtRange;
if (range != null)
{
// ?????????//
}
}
Thanks in advance...Plz Help ..
Reply
Answers (
10
)
translate english to gujrati in windows form application c#
Interacting with excel files in C# windows application