Click here to Skip to main content
16,012,611 members
Home / Discussions / C#
   

C#

 
AnswerRe: On button click-context menu strip Pin
ABitSmart11-Feb-09 20:08
ABitSmart11-Feb-09 20:08 
AnswerRe: On button click-context menu strip Pin
DaveyM6911-Feb-09 22:56
professionalDaveyM6911-Feb-09 22:56 
GeneralRe: On button click-context menu strip Pin
Udayaraju15-Feb-09 4:54
Udayaraju15-Feb-09 4:54 
GeneralRe: On button click-context menu strip Pin
DaveyM6915-Feb-09 6:33
professionalDaveyM6915-Feb-09 6:33 
Questionc# Pin
aratireddy11-Feb-09 17:14
aratireddy11-Feb-09 17:14 
AnswerRe: c# Pin
ABitSmart11-Feb-09 18:43
ABitSmart11-Feb-09 18:43 
QuestionHow to create and execute of a simple Function with input and output parameters in pl/sql using with c#.net Pin
AnilJayanti11-Feb-09 16:40
AnilJayanti11-Feb-09 16:40 
Questionleading numbers in a text string appearing at end of text in a Rich Text Box. Pin
Willbo_II11-Feb-09 15:15
Willbo_II11-Feb-09 15:15 
I'm writting an application that displays data in a rich text box control by
adding a each line that I read in from a file to the control.
at the end of each line I add in a "\n" for a line feed.

the odd thing is that the leading numbers on the line end up at the end of the line just before the line feed.

so the file reads as...

1913 Name Address more text=============

and when I add it to the rich text box text feild I get...
Name Address more text============= 1913

and each line is like that.


My code is simply...

<code segment>
String Temp ="1913 Name Address more text=============";

RichTextBox_control.Text += Temp +"\n";

</code segment>


The odd thing is that when I look at the contents of the RTBcontrol while in debug mode, it looks correct, but it always displays the numbers at the end of the line ie: incorrectly.

Also if I add a letter to the front of the string then the entire string gets displayed correctly

IE:
<code segment>
String Temp ="1913 Name Address more text=============";

RTB.Text += "a " + Temp + "\n";

</code segment>

results in following being displayed in the box...

a 1913 Name Address more text=============


What gives? Is there a control code I can put in the text to make it display correctly or am I missing something that's just under my nose?

Thanks,
Will
GeneralRe: leading numbers in a text string appearing at end of text in a Rich Text Box. Pin
Luc Pattyn11-Feb-09 16:02
sitebuilderLuc Pattyn11-Feb-09 16:02 
QuestionSet license key / product in c# project - installation package. Pin
thecodesource7911-Feb-09 14:55
thecodesource7911-Feb-09 14:55 
AnswerRe: Set license key / product in c# project - installation package. Pin
DJ-Boris12-Feb-09 0:31
DJ-Boris12-Feb-09 0:31 
GeneralRe: Set license key / product in c# project - installation package. Pin
thecodesource7912-Feb-09 13:52
thecodesource7912-Feb-09 13:52 
AnswerRe: Set license key / product in c# project - installation package. Pin
Member 114976512-Dec-09 0:53
Member 114976512-Dec-09 0:53 
QuestionStartup Performance Pin
Wizard_0111-Feb-09 11:00
Wizard_0111-Feb-09 11:00 
QuestionSomething better than Switch Case Pin
Muammar©11-Feb-09 10:12
Muammar©11-Feb-09 10:12 
AnswerRe: Something better than Switch Case Pin
akidan11-Feb-09 10:20
akidan11-Feb-09 10:20 
GeneralRe: Something better than Switch Case Pin
Muammar©11-Feb-09 10:28
Muammar©11-Feb-09 10:28 
AnswerRe: Something better than Switch Case Pin
akidan11-Feb-09 11:04
akidan11-Feb-09 11:04 
GeneralRe: Something better than Switch Case Pin
Pete O'Hanlon11-Feb-09 11:07
mvePete O'Hanlon11-Feb-09 11:07 
GeneralRe: Something better than Switch Case Pin
akidan11-Feb-09 11:11
akidan11-Feb-09 11:11 
GeneralRe: Something better than Switch Case Pin
Muammar©11-Feb-09 22:16
Muammar©11-Feb-09 22:16 
GeneralRe: Something better than Switch Case Pin
akidan12-Feb-09 3:10
akidan12-Feb-09 3:10 
AnswerRe: Something better than Switch Case Pin
Deresen11-Feb-09 10:45
Deresen11-Feb-09 10:45 
AnswerRe: Something better than Switch Case Pin
Pete O'Hanlon11-Feb-09 11:06
mvePete O'Hanlon11-Feb-09 11:06 
GeneralRe: Something better than Switch Case Pin
led mike11-Feb-09 11:29
led mike11-Feb-09 11:29 

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.