Click here to Skip to main content
15,918,125 members
Home / Discussions / C#
   

C#

 
AnswerRe: Sounds with c# Pin
Judah Gabriel Himango8-Jan-07 10:12
sponsorJudah Gabriel Himango8-Jan-07 10:12 
AnswerRe: Sounds with c# Pin
Luc Pattyn8-Jan-07 10:18
sitebuilderLuc Pattyn8-Jan-07 10:18 
QuestionWindows list dropdown problem Pin
Matthew Cuba8-Jan-07 9:16
Matthew Cuba8-Jan-07 9:16 
AnswerRe: Windows list dropdown problem Pin
Christian Graus8-Jan-07 9:19
protectorChristian Graus8-Jan-07 9:19 
GeneralRe: Windows list dropdown problem Pin
Matthew Cuba8-Jan-07 10:22
Matthew Cuba8-Jan-07 10:22 
QuestionHow to save page as MHT with ASP/C# Pin
Todd82TA8-Jan-07 9:14
Todd82TA8-Jan-07 9:14 
AnswerRe: How to save page as MHT with ASP/C# Pin
Christian Graus8-Jan-07 9:24
protectorChristian Graus8-Jan-07 9:24 
Question"coselecting" text in a TextBox or RichTextBox Pin
Clive Pottinger8-Jan-07 8:57
Clive Pottinger8-Jan-07 8:57 
Hello folks.

I am writing an application which has two text boxes (call them A and B). B is a hexdump representation of the text in A. So far, so good. What I want that when text is selected in A the corresponding hex characters are highlighted in B, and vise versa.

I started with TextBoxes, but I needed to know when the selection in one box changed and TextBox doesn't tell you this. RichTextBox has the SelectionChanged event - perfect - so I switched to RichTextBoxes.

But now, whenever my selection extends beyond a space, RichTextBox starts selecting the entire word(s). I can't get it just select what I drag the cursor over. I have checked the AutoWordSelection property and it is set to false - I even checked it at runtime to see if had changed, but it is false at the moment my selection is being changed.

Does anyone have any ideas? Can this #!&^ "feature" be turned off in RichTextBoxes? Or can I go back to TextBoxes and get notification of a change to the selection?

Clive Pottinger,
Hamilton ON

AnswerRe: "coselecting" text in a TextBox or RichTextBox Pin
Luc Pattyn8-Jan-07 9:55
sitebuilderLuc Pattyn8-Jan-07 9:55 
QuestionMDI Menustrip not merged (bug?) Pin
AndrusM8-Jan-07 8:56
AndrusM8-Jan-07 8:56 
QuestionRead config file with OpenExeConfiguration? [modified] Pin
Marcus_28-Jan-07 8:12
Marcus_28-Jan-07 8:12 
AnswerRe: Read config file with OpenExeConfiguration? Pin
Mircea Puiu8-Jan-07 23:43
Mircea Puiu8-Jan-07 23:43 
QuestionGraphing in C#, Possible? Pin
gvanto8-Jan-07 8:04
gvanto8-Jan-07 8:04 
AnswerRe: Graphing in C#, Possible? Pin
gnadeem8-Jan-07 8:34
gnadeem8-Jan-07 8:34 
AnswerRe: Graphing in C#, Possible? Pin
Guffa8-Jan-07 8:59
Guffa8-Jan-07 8:59 
GeneralRe: Graphing in C#, Possible? Pin
gvanto8-Jan-07 9:16
gvanto8-Jan-07 9:16 
GeneralRe: Graphing in C#, Possible? Pin
Christian Graus8-Jan-07 9:28
protectorChristian Graus8-Jan-07 9:28 
GeneralRe: Graphing in C#, Possible? Pin
Thomas Stockwell8-Jan-07 9:51
professionalThomas Stockwell8-Jan-07 9:51 
GeneralRe: Graphing in C#, Possible? Pin
gvanto8-Jan-07 10:02
gvanto8-Jan-07 10:02 
GeneralRe: Graphing in C#, Possible? Pin
led mike8-Jan-07 10:13
led mike8-Jan-07 10:13 
GeneralRe: Graphing in C#, Possible? Pin
gvanto8-Jan-07 10:15
gvanto8-Jan-07 10:15 
GeneralRe: Graphing in C#, Possible? Pin
led mike8-Jan-07 10:25
led mike8-Jan-07 10:25 
Questionany book for c# graphics Pin
samreengr88-Jan-07 6:41
samreengr88-Jan-07 6:41 
AnswerRe: any book for c# graphics Pin
ednrgc8-Jan-07 6:56
ednrgc8-Jan-07 6:56 
AnswerRe: any book for c# graphics Pin
Christian Graus8-Jan-07 9:30
protectorChristian Graus8-Jan-07 9:30 

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.