How to Highlight Text
Thank you guys, you helped me a lot. But the above codes are still having some bug, I edited sucessfully :'Box is my RichTextBox Private Sub Box_TextChanged(ByVal sender As System.Object, ByVal e As...
View ArticleHow to Highlight Text
Here's another version using a Lambda:For Each word As String In h_words Array.ForEach(Regex.Matches(RichTextBox1.Text, word, RegexOptions.IgnoreCase).Cast(Of Match).ToArray, _ Sub(x)...
View ArticleHow to Highlight Text
That's even faster with less fat. Nice work again...Onion is a recent refuge from Mac OS X and hates Mac App Store. System: Windows 7 x64
View ArticleHow to Highlight Text
Here's a good example that I put together as well.Dim h_words As String() = {"one", "two", "three"} For Each word As String In h_words For Each m As Match In Regex.Matches(RichTextBox1.Text, word,...
View ArticleHow to Highlight Text
It works for me. Nice work, jal2...Onion is a recent refuge from Mac OS X and hates Mac App Store. System: Windows 7 x64 Thanks for the compliment! If I got it right, I suppose it proves that even a...
View ArticleHow to Highlight Text
It works for me. Nice work, jal2...Onion is a recent refuge from Mac OS X and hates Mac App Store. System: Windows 7 x64
View ArticleHow to Highlight Text
I can't use that code because I'm making a syntax highlighter.After highlighting the rest of the words will become the color and it highlight the keyword.If i type anything else it will replace the...
View ArticleHow to Highlight Text
I can't use that code because I'm making a syntax highlighter.After highlighting the rest of the words will become the color and it highlight the keyword.If i type anything else it will replace the...
View ArticleHow to Highlight Text
Dim keyword As String = "the" 'find this word. Dim currentPositionOfCursor As Int32 = 0 Do Dim posOfNextHit As Int32 = RichTextBox1.Find(keyword, currentPositionOfCursor, RichTextBoxFinds.None) If...
View ArticleHow to Highlight Text
Hi, I am currently making a Syntax Highlighter.How can I highlight certain text inside a RichTextBox ?I am Currently Using This Code :Public Function Highlight(ByVal highlightcolor As String, ByVal...
View Article