RichTextBox Hyperlink Underline
Hey All,
I downloaded moeur's code (AutoURLdetect.zip) from this page - http://www.vbforums.com/showthread.p...70#post2186470
The code runs great. I have a couple of questions about it.
1. Is there a way to remove the underline from the hyperlink?
2. Do I need to distribute RICHTX32.OCX with my program or is it already installed on Windows XP, 7 and 10?
Thanks in advance,
Ron
Re: RichTextBox Hyperlink Underline
As for the second question, see Support Statement for Visual Basic 6.0 on Windows Vista, Windows Server 2008, Windows 7, Windows 8 and Windows 8.1, Windows Server 2012, and Windows 10. It contains pretty accurate lists of what must be deployed.
Short answer: yes you must deploy this OCX, it is not part of Windows.
Re: RichTextBox Hyperlink Underline
1) From https://blogs.msdn.microsoft.com/mur...me-hyperlinks/
Quote:
Sending EM_SETEDITSTYLEEX with wparam = 0 and lparam = SES_EX_HANDLEFRIENDLYURL
It also mentioned that LineServices may need to be off to address a bug in Win8, that always underline links regardles.
2) The OCX is VB specific and needs to be distributed.
Re: RichTextBox Hyperlink Underline
I could'nt get anything to work... oh well it's not a big deal... I just didn't care for the look.
Thanks for the information guys.