Click here to Skip to main content
15,909,898 members
Home / Discussions / C#
   

C#

 
AnswerRe: replace Pin
Guffa1-Feb-06 8:28
Guffa1-Feb-06 8:28 
GeneralRe: replace Pin
mav.northwind1-Feb-06 9:53
mav.northwind1-Feb-06 9:53 
GeneralRe: replace Pin
jasonpb1-Feb-06 12:43
jasonpb1-Feb-06 12:43 
GeneralRe: replace Pin
Guffa1-Feb-06 22:24
Guffa1-Feb-06 22:24 
GeneralRe: replace Pin
Guffa1-Feb-06 21:58
Guffa1-Feb-06 21:58 
GeneralRe: replace Pin
mav.northwind1-Feb-06 22:40
mav.northwind1-Feb-06 22:40 
Question.Z library? Pin
Howard Richards1-Feb-06 5:58
Howard Richards1-Feb-06 5:58 
QuestionRichTextBox and hidden Text Pin
Beringer1-Feb-06 5:51
Beringer1-Feb-06 5:51 
I have come across an issue using the RichTextBox control and using hidden text.

I have programatically placed hidden text in the control and then attempt to search for that text using the Find method. The indexes it returns are correct.

However, when I call Select (or even set the SelectionStart and SelectionLength properties) to select some text that includes the hidden text this fails to work properly. The actual behavior is to reverse SelectionStart and SelectionLength.
For example:

this.textBox.SelectionStart = 45;
this.textBox.SelectionLength = 0;
-or-
this.textBox.Selection(45, 0);

Now look at the property values in the debuger and you will see SelectionStart = 0 and SelectionLength = 45.

If I remove hidden text from the control everything works fine.

Has anybody experienced this behavior? Just to be sure I wasn't messing with the values somewhere else, I commented out all other Selection calls and setting of the properties from my code and still had the issue.

Thanks
Eric
AnswerRe: RichTextBox and hidden Text Pin
Beringer1-Feb-06 7:52
Beringer1-Feb-06 7:52 
GeneralRe: RichTextBox and hidden Text Pin
Beringer1-Feb-06 8:00
Beringer1-Feb-06 8:00 
GeneralRe: RichTextBox and hidden Text Pin
mav.northwind1-Feb-06 9:39
mav.northwind1-Feb-06 9:39 
GeneralRe: RichTextBox and hidden Text Pin
Beringer1-Feb-06 11:08
Beringer1-Feb-06 11:08 
GeneralRe: RichTextBox and hidden Text Pin
mav.northwind1-Feb-06 22:53
mav.northwind1-Feb-06 22:53 
GeneralRe: RichTextBox and hidden Text Pin
Beringer2-Feb-06 7:49
Beringer2-Feb-06 7:49 
GeneralRe: RichTextBox and hidden Text Pin
Beringer2-Feb-06 19:53
Beringer2-Feb-06 19:53 
GeneralRe: RichTextBox and hidden Text Pin
mav.northwind2-Feb-06 22:33
mav.northwind2-Feb-06 22:33 
GeneralRe: RichTextBox and hidden Text Pin
Beringer3-Feb-06 4:25
Beringer3-Feb-06 4:25 
Questionreference exe assembly in visual studio Pin
alexrait11-Feb-06 5:37
alexrait11-Feb-06 5:37 
AnswerRe: reference exe assembly in visual studio Pin
Colin Angus Mackay1-Feb-06 5:49
Colin Angus Mackay1-Feb-06 5:49 
GeneralRe: reference exe assembly in visual studio Pin
alexrait11-Feb-06 5:53
alexrait11-Feb-06 5:53 
GeneralRe: reference exe assembly in visual studio Pin
Dave Kreskowiak1-Feb-06 7:02
mveDave Kreskowiak1-Feb-06 7:02 
GeneralRe: reference exe assembly in visual studio Pin
alexrait11-Feb-06 8:15
alexrait11-Feb-06 8:15 
GeneralRe: reference exe assembly in visual studio Pin
Dave Kreskowiak1-Feb-06 9:12
mveDave Kreskowiak1-Feb-06 9:12 
GeneralRe: reference exe assembly in visual studio Pin
mav.northwind1-Feb-06 9:47
mav.northwind1-Feb-06 9:47 
AnswerRe: reference exe assembly in visual studio Pin
Dave Kreskowiak1-Feb-06 5:51
mveDave Kreskowiak1-Feb-06 5:51 

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.