Click here to Skip to main content
11,484,752 members (75,847 online)
Rate this: bad
good
Please Sign up or sign in to vote.
See more: C#4.0 VS2010
I have a form that contains listbox, textboxex and some richtextboxes. When we select any letter name in listbox, it bind the data to all the textboxex and richtextboxes.
i want to highlight some text in richtextbox when we select any letter name from listbox.
eg.

Just a friendly reminder that you have <<OverdueInvCount>> overdue invoice(s), with an overdue balance of <<OverdueInvTotal>>. If you have any questions about the amount you owe, please give us a call and we’ll be happy to discuss it. If you’ve already sent your payment, please disregard this reminder.

all the data coming from database.

i want to highlight <<OverdueInvCount>> and <<OverdueInvTotal>> these words.when i select a letter from listbox.
Posted 5-Feb-13 7:43am

1 solution

Rate this: bad
good
Please Sign up or sign in to vote.

Solution 1

You will have to build the complete solution on your own.
However, here are some links that might give you some ideas to try out -
http://www.dotnetcurry.com/ShowArticle.aspx?ID=146[^]
Background Highlighting with the RichTextBox the System way.[^]
Enabling syntax highlighting in a RichTextBox[^]
  Permalink  

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

  Print Answers RSS
0 Maciej Los 190
1 Sergey Alexandrovich Kryukov 160
2 Raje_ 155
3 OriginalGriff 137
4 Mehdi Gholam 130
0 Sergey Alexandrovich Kryukov 8,494
1 OriginalGriff 7,948
2 Sascha Lefèvre 3,199
3 Maciej Los 2,681
4 Richard Deeming 2,370


Advertise | Privacy | Mobile
Web03 | 2.8.150520.1 | Last Updated 5 Feb 2013
Copyright © CodeProject, 1999-2015
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100