Click here to Skip to main content
15,896,063 members
Home / Discussions / C#
   

C#

 
GeneralRe: Text.Length Command Pin
Guffa9-Jan-09 17:24
Guffa9-Jan-09 17:24 
GeneralRe: Text.Length Command Pin
Henry Minute9-Jan-09 23:34
Henry Minute9-Jan-09 23:34 
GeneralOMG Pin
Luc Pattyn9-Jan-09 11:40
sitebuilderLuc Pattyn9-Jan-09 11:40 
GeneralRe: Text.Length Command Pin
Henry Minute9-Jan-09 12:22
Henry Minute9-Jan-09 12:22 
GeneralRe: Text.Length Command Pin
Colin Angus Mackay9-Jan-09 13:44
Colin Angus Mackay9-Jan-09 13:44 
GeneralRe: Text.Length Command Pin
asquaredtech9-Jan-09 19:13
asquaredtech9-Jan-09 19:13 
GeneralRe: Text.Length Command Pin
Guffa10-Jan-09 0:52
Guffa10-Jan-09 0:52 
AnswerRe: Text.Length Command Pin
Guffa9-Jan-09 17:34
Guffa9-Jan-09 17:34 
It would be better if you posted part of the code that you are actually using, instead of posting some other code that does not quite do the same as what your actual code does.

The code that you posted does not do what you say that it does. Instead it will put the string "Sending File....\r\nLine 1 of 3Line 1 of 3Line 1 of 3Line 1 of 3" in the text box. The Remove call will not change the string at all, as it doesn't assign the result back to the Text property.

If you want to keep part of the string, use the Substring method to get that, and concatenate with the new string:
textBoxConsole.Text = "Sending File....\r\n";
int len = textBoxConsole.Text.Length;
for (int i = 1; i <= 3; i++) {
    textBoxConsole.Text = textBoxConsole.Text.Substring(0, len) + "Line 1 of 3";
}


Despite everything, the person most likely to be fooling you next is yourself.

GeneralRe: Text.Length Command Pin
asquaredtech9-Jan-09 19:20
asquaredtech9-Jan-09 19:20 
GeneralRe: Text.Length Command Pin
Guffa9-Jan-09 20:10
Guffa9-Jan-09 20:10 
QuestionMultiple values in a querystring Pin
ferronrsmith9-Jan-09 8:48
ferronrsmith9-Jan-09 8:48 
AnswerRe: Multiple values in a querystring Pin
sudhanvag10-Jan-09 5:18
sudhanvag10-Jan-09 5:18 
GeneralRe: Multiple values in a querystring Pin
ferronrsmith10-Jan-09 9:55
ferronrsmith10-Jan-09 9:55 
GeneralRe: Multiple values in a querystring Pin
sudhanvag10-Jan-09 15:59
sudhanvag10-Jan-09 15:59 
QuestionRead and copy .docx Pin
Xtrme_XJ9-Jan-09 8:23
Xtrme_XJ9-Jan-09 8:23 
Questionunisgned integers and global cases in C# Pin
Xarzu9-Jan-09 7:54
Xarzu9-Jan-09 7:54 
AnswerRe: unisgned integers and global cases in C# Pin
Eddy Vluggen9-Jan-09 8:24
professionalEddy Vluggen9-Jan-09 8:24 
AnswerRe: unisgned integers and global cases in C# Pin
JByrd20069-Jan-09 9:02
JByrd20069-Jan-09 9:02 
AnswerRe: unisgned integers and global cases in C# Pin
Guffa9-Jan-09 17:52
Guffa9-Jan-09 17:52 
Questionany body idea in viterbi algorithm Pin
lawrenceinba9-Jan-09 7:39
lawrenceinba9-Jan-09 7:39 
AnswerRe: any body idea in viterbi algorithm Pin
Christian Graus9-Jan-09 7:46
protectorChristian Graus9-Jan-09 7:46 
GeneralRe: any body idea in viterbi algorithm Pin
lawrenceinba9-Jan-09 8:00
lawrenceinba9-Jan-09 8:00 
AnswerRe: any body idea in viterbi algorithm Pin
EliottA9-Jan-09 8:01
EliottA9-Jan-09 8:01 
GeneralRe: any body idea in viterbi algorithm Pin
Luc Pattyn9-Jan-09 8:20
sitebuilderLuc Pattyn9-Jan-09 8:20 
GeneralRe: any body idea in viterbi algorithm Pin
Eddy Vluggen9-Jan-09 8:40
professionalEddy Vluggen9-Jan-09 8:40 

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.