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
blagoje ivanovic
NA
17
0
Help with RTB Highlighting
Apr 1 2009 2:48 PM
Hi!
I made a highlight script that checks the text and highlights matched words:
foreach (Match keyWordMatch in keyWords.Matches(txtIzvor.Text))
{
txtIzvor.Select(keyWordMatch.Index, keyWordMatch.Length);
txtIzvor.SelectionColor = System.Drawing.Color.Blue;
txtIzvor.SelectionStart = selPos;
txtIzvor.SelectionLength = 0;
}
but I have one problem: this check is ok but on every text changed event it checks all of the text so it bugs.
I used this script on document load. Can anybody help me make this script work for only the
line you are writing in
example:
if you write in line 1 it only checks line 1
Thanks!
Reply
Answers (
6
)
Add Data to Datagrid
How does one regenerate a form?