Click here to Skip to main content
15,892,697 members
Home / Discussions / C#
   

C#

 
GeneralRe: Returning Windows Form from Remote Application Pin
Adam Goossens30-Dec-04 1:14
Adam Goossens30-Dec-04 1:14 
GeneralHighlighting Text in IE Pin
eliea29-Dec-04 19:57
eliea29-Dec-04 19:57 
GeneralRe: Highlighting Text in IE Pin
Heath Stewart30-Dec-04 6:03
protectorHeath Stewart30-Dec-04 6:03 
GeneralRe: Highlighting Text in IE Pin
eliea5-Jan-05 10:30
eliea5-Jan-05 10:30 
QuestionAdd LinkLabel To Richtextbox ? Pin
WDI29-Dec-04 19:50
WDI29-Dec-04 19:50 
AnswerRe: Add LinkLabel To Richtextbox ? Pin
Heath Stewart30-Dec-04 5:49
protectorHeath Stewart30-Dec-04 5:49 
GeneralRe: Add LinkLabel To Richtextbox ? Pin
WDI30-Dec-04 22:57
WDI30-Dec-04 22:57 
GeneralRe: Add LinkLabel To Richtextbox ? Pin
Heath Stewart31-Dec-04 5:57
protectorHeath Stewart31-Dec-04 5:57 
The Rich Edit common control - which the RichTextBox encapsulates - does not support extensible URL detection, unfortunately, but you can implement this yourself.

When the text changes scan behind the caret (get the SelectionStart property) and see if its text you want to recognize as a "URL". Use the SelectionColor and SelectionFont to highlight and underline the font.

If you want to use the same font style that the RichTextBox is using, use the Microsoft.Win32.RegistryKey class to read appropriate values from HKEY_CURRENT_USER\Software\Microsoft\Internet Explorer\Settings.

Handle the Click event, get the SelectionStart again, determine which text was clicked and, if it's a "link", perform whatever action is appropriate.

This posting is provided "AS IS" with no warranties, and confers no rights.

Software Design Engineer
Developer Division Sustained Engineering
Microsoft

[My Articles] [My Blog]
GeneralRe: Add LinkLabel To Richtextbox ? Pin
mav.northwind1-Jan-05 1:14
mav.northwind1-Jan-05 1:14 
GeneralLineScroll Pin
Member 109769929-Dec-04 19:25
Member 109769929-Dec-04 19:25 
GeneralRe: LineScroll Pin
Heath Stewart30-Dec-04 5:42
protectorHeath Stewart30-Dec-04 5:42 
Generalextensible fields data schema Pin
ppp00129-Dec-04 19:11
ppp00129-Dec-04 19:11 
GeneralRe: extensible fields data schema Pin
Heath Stewart30-Dec-04 5:45
protectorHeath Stewart30-Dec-04 5:45 
GeneralRe: extensible fields data schema Pin
ppp00130-Dec-04 15:22
ppp00130-Dec-04 15:22 
GeneralRe: extensible fields data schema Pin
Heath Stewart30-Dec-04 19:59
protectorHeath Stewart30-Dec-04 19:59 
GeneralRegional Setting Pin
Kyaw Soe Khaing29-Dec-04 18:48
Kyaw Soe Khaing29-Dec-04 18:48 
GeneralRe: Regional Setting Pin
Paul Watson29-Dec-04 21:42
sitebuilderPaul Watson29-Dec-04 21:42 
Generalsetting a font Pin
Tyrus18229-Dec-04 18:27
Tyrus18229-Dec-04 18:27 
GeneralRe: setting a font Pin
leppie29-Dec-04 23:21
leppie29-Dec-04 23:21 
General.net Remoting Pin
Anil_gupta29-Dec-04 18:21
Anil_gupta29-Dec-04 18:21 
GeneralRe: .net Remoting Pin
leppie29-Dec-04 23:22
leppie29-Dec-04 23:22 
GeneralRe: .net Remoting Pin
Adam Goossens30-Dec-04 1:13
Adam Goossens30-Dec-04 1:13 
GeneralRe: .net Remoting Pin
Adam Goossens30-Dec-04 16:48
Adam Goossens30-Dec-04 16:48 
Generalobject and layers design question Pin
ppp00129-Dec-04 17:50
ppp00129-Dec-04 17:50 
GeneralOverrated Pin
Paul Watson29-Dec-04 21:45
sitebuilderPaul Watson29-Dec-04 21:45 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.