Click here to Skip to main content
15,746,202 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
i wanna write a program in which by moving the mouse over a chunk of text the color of the background to be changed to black (or other color does not matter) and if the highlighted (black) part of text got clicked again it get turns into another color and the label text to be changed arbitrarily.I am using this control richtextbox winforms. But my idea is to use webbrowser control winforms,What do you think a better idea?

for example:
Tanzil - Quran [^]

What I have tried:

Changing the background of some parts of the text in the time mousemove and leave events in c# winforms.
Sergey Alexandrovich Kryukov 23-Apr-16 0:27am    
Both ways are doable, and yet another approach would be using WPF FlowDocument. The final decision depends on many factors, first of all, the whole set of other requirements.
Garth J Lancaster 23-Apr-16 1:10am    
Requirements ? yes .. very elusive around here
log98 23-Apr-16 1:38am    
In fact, I text should be read from the database and in my view control(richtebox or webBrowser).
Sergey Alexandrovich Kryukov 23-Apr-16 7:03am    
And this is the feature which hardly makes any difference. Anyway, you decide. I suggest you prototype with different approach, to get clear picture, and than decide.
Karthik_Mahalingam 24-Apr-16 9:03am    
windows form or web app ?

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

CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900