473,472 Members | 2,139 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

RichTextBox - color of visited hyperlinks

In my app I would like to change the color of the hyperlink from blue to
purple when a user clicks the hyperlink in a RichTextBox.
The DetectUrls property is set to True and I handle the
RichTextBox1.LinkClicked event to launch a browser window. That works fine.

The problem is that once the DetectUrls property is True the RichTextBox
control shows the link in blue even if I select the text and change the
SelectionColor to purple.
For example, I can change the font style of a visited link to say bold or
italic but I cannot change the color of a visited link.
I can change the hyperlink color to purple if DetectUrls is False but then I
cannot visit any other links in the RichTextBox text.

Has anyone else experienced this problem?
Is there an answer??

Thanks in advance

Roger
VS2005 , vb.net
--
Roger
Jan 6 '08 #1
1 2255
Roger,

Will you try to avoid multiposting, it is without sense to answer these
questions because you never know has given a better answer before you. So
the answers will always short or like this one.

Cor

Jan 6 '08 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

18
by: Jan Tuxen | last post by:
Jakob Nielsen in his most recent Alertbox (http://www.useit.com/alertbox/20040503.html) tells web authors to change the color of visited links. I agree to his purpose: Help users understand...
5
by: KKramsch | last post by:
Suppose I want to set some color to match the color of (unvisited) hyperlinks, whatever this color may be (without explicitly setting this color, of course). How can I specify it? Thanks, ...
20
by: Bob | last post by:
Hello, I have an <h1> banner that is white font on black background. I am using CSS to style the banner in white on black. I would like to hyperlink the words, but I want to force the...
2
by: Steve Teeples | last post by:
I've created a RTF file using Microsoft Word. Within that file are internal hyperlinks to sections of the document. I'd like to use it as a help file. When I place the file into a RichTextBox...
0
by: acconrad | last post by:
We're trying to make it such that you can change the color for hyperlinks in RichTextBox controls. Currently VS.NET '03 does not allow one to do this. We tried this -->...
1
by: gabe | last post by:
I am looking for a way to mimic some of the functionality of a web page without writing html (or I am looking to someone to point out something really obvious that I am over looking) Currently I...
8
by: Jeff | last post by:
ASP.NET 2.0 I'm wondering how to set the color of a visited HyperLinkField (the link text) in a GridView?? Here is the markup of the HyperLinkField I have problems with: <asp:HyperLinkField...
0
by: =?Utf-8?B?Um9nZXI=?= | last post by:
In my app I would like to change the color of the hyperlink from blue to purple when a user clicks the hyperlink in a RichTextBox. The DetectUrls property is set to True and I handle the...
0
by: Prats | last post by:
I know this is a windows form question, but because my project is in C++/CLI, I am posting it here How to add and display a URL in a richtextBox. There is a property for RichTextBox DetectUrls,...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
1
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
1
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
0
muto222
php
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.