Click here to Skip to main content
13,295,192 members (68,002 online)
Rate this:
Please Sign up or sign in to vote.
See more:
I have a problem, i have text stored in xml file formatting like this:
    <token tag='man'>
        a doctor
    <token tag='man'>
        a wife

I want to show this text for User(on a TextBox, a Panel,...) ,and tokens which have tag='man'(in this case:John,He) have different color from the rest, plus, they can be Clicked (to show extra information,etc). It appears that in ToolBox there is not such a tool could do this. So I don't know how to solve it, does anybody have any suggestions?
Thanks for reading this!
Posted 27-Jun-12 1:21am
Updated 27-Jun-12 5:47am
Shahin Khorshidnia 27-Jun-12 6:59am
1. Please Tag your question WinForm? ASP.Net? WPF? ...
2. Seach the google. You need a Highlighter (I think)
rongvangso7 27-Jun-12 10:54am
thank Shahin, but with my problem I can't find a search term appropriately... :( do you have any advices??
Zoltán Zörgő 27-Jun-12 7:05am
I suppose you need something special. With it looks a little bit easier...
Sergey Alexandrovich Kryukov 27-Jun-12 13:17pm
What is easier... it really depends.
Zoltán Zörgő 27-Jun-12 14:27pm
Sure, but DOM helps a lot in manipulating the UI; it is easier to combine controls as layout elements or change their look and feel as in windows forms. Of course, it has its own limitations... it really depends :)
Sergey Alexandrovich Kryukov 29-Jun-12 18:47pm
When I said "it depends" I did not mean DOM; I referred to your "with ASP.NET" it looks a little bit easier. ASP.NET does not generally make anything easier (for example, when it comes to applications, it's actually usually much harder then desktops, because Web applications has to overcome draconian limitations of HTTP), but nevertheless I know some aspects or cases easier with Web applications, especially ASP.NET -- that's why I said "it depends".

1 solution

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

Solution 1

You will need to develop you own control, for example, on the base of System.Windows.Forms.RichTextBox, please see:[^].


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

  Print Answers RSS
Top Experts
Last 24hrsThis month

Advertise | Privacy |
Web01 | 2.8.171207.1 | Last Updated 27 Jun 2012
Copyright © CodeProject, 1999-2017
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