Click here to Skip to main content
15,894,646 members
Home / Discussions / C#
   

C#

 
GeneralHTTP POST with unicode in C# Pin
khchan28-Jul-04 16:32
khchan28-Jul-04 16:32 
GeneralRe: HTTP POST with unicode in C# Pin
Heath Stewart29-Jul-04 5:17
protectorHeath Stewart29-Jul-04 5:17 
QuestionFast way to link items in richTextBoxes with text ? Pin
evdoxos28-Jul-04 14:41
evdoxos28-Jul-04 14:41 
AnswerRe: Fast way to link items in richTextBoxes with text ? Pin
mav.northwind28-Jul-04 21:21
mav.northwind28-Jul-04 21:21 
GeneralRe: Fast way to link items in richTextBoxes with text ? Pin
evdoxos29-Jul-04 0:59
evdoxos29-Jul-04 0:59 
GeneralRe: Fast way to link items in richTextBoxes with text ? Pin
mav.northwind29-Jul-04 1:04
mav.northwind29-Jul-04 1:04 
GeneralRe: Fast way to link items in richTextBoxes with text ? Pin
evdoxos29-Jul-04 2:13
evdoxos29-Jul-04 2:13 
GeneralRe: Fast way to link items in richTextBoxes with text ? Pin
mav.northwind29-Jul-04 2:30
mav.northwind29-Jul-04 2:30 
Please stop shouting.

As I stated before, to make part of your RichText to have link appearance and behaviour (blue foreground, underlined, fire LinkClicked event), this part of text has to have the right flags set (CFE_LINK) in the underlying RichEdit control.

These flags (and several others) cannot be set from .NET alone, that's why I've added a section to the MSDN article on how to make only part of your text Bold (or italic or Size 12 or a link) without affecting other properties.

Please read the article, it's all explained there.

The only thing you have to do basically is to duplicate the SetSelectionBold() function from RichTextBoxEx, for example, and change CFE_BOLD to CFE_LINK.

Then add your keyword to the RichTextBoxEx, select it and call your newly defined SetSelectionLink() function.
Voila - only the selection is underlined and will fire LinkClicked without http:// or ftp://.


mav
GeneralRe: Fast way to link items in richTextBoxes with text ? Pin
evdoxos29-Jul-04 18:26
evdoxos29-Jul-04 18:26 
GeneralStarting a GUI app with a windows service in C# Pin
satorical28-Jul-04 14:27
satorical28-Jul-04 14:27 
GeneralRe: Starting a GUI app with a windows service in C# Pin
ChrisAdams28-Jul-04 15:25
ChrisAdams28-Jul-04 15:25 
GeneralRe: Starting a GUI app with a windows service in C# Pin
Heath Stewart29-Jul-04 5:23
protectorHeath Stewart29-Jul-04 5:23 
GeneralRe: Starting a GUI app with a windows service in C# Pin
satorical29-Jul-04 6:13
satorical29-Jul-04 6:13 
GeneralRe: Starting a GUI app with a windows service in C# Pin
Heath Stewart29-Jul-04 6:23
protectorHeath Stewart29-Jul-04 6:23 
Questionhow to get cd information Pin
civc28-Jul-04 13:23
civc28-Jul-04 13:23 
QuestionHow to enumerate windows belong to an instance? Pin
Old Gun28-Jul-04 13:04
Old Gun28-Jul-04 13:04 
AnswerRe: How to enumerate windows belong to an instance? Pin
Dave Kreskowiak28-Jul-04 14:17
mveDave Kreskowiak28-Jul-04 14:17 
Generalusing ref in C# for reference types Pin
vista2728-Jul-04 12:48
vista2728-Jul-04 12:48 
GeneralRe: using ref in C# for reference types Pin
Heath Stewart28-Jul-04 13:00
protectorHeath Stewart28-Jul-04 13:00 
GeneralRe: using ref in C# for reference types Pin
vista2728-Jul-04 13:58
vista2728-Jul-04 13:58 
GeneralRe: using ref in C# for reference types Pin
Heath Stewart29-Jul-04 4:17
protectorHeath Stewart29-Jul-04 4:17 
GeneralRe: using ref in C# for reference types Pin
MKlucher28-Jul-04 18:12
MKlucher28-Jul-04 18:12 
GeneralRe: using ref in C# for reference types Pin
Heath Stewart29-Jul-04 4:28
protectorHeath Stewart29-Jul-04 4:28 
GeneralIDispDataVwDataConn => casting Server Explorer node to this interface Pin
mikker_12328-Jul-04 12:18
mikker_12328-Jul-04 12:18 
GeneralRe: IDispDataVwDataConn => casting Server Explorer node to this interface Pin
Heath Stewart28-Jul-04 12:41
protectorHeath Stewart28-Jul-04 12:41 

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.