Click here to Skip to main content
15,891,316 members
Home / Discussions / C#
   

C#

 
Questionapplication path in class library Pin
Mridang Agarwalla2-Sep-05 4:16
Mridang Agarwalla2-Sep-05 4:16 
AnswerRe: application path in class library Pin
Judah Gabriel Himango2-Sep-05 4:43
sponsorJudah Gabriel Himango2-Sep-05 4:43 
AnswerRe: application path in class library Pin
miah alom2-Sep-05 5:13
miah alom2-Sep-05 5:13 
GeneralRe: application path in class library Pin
miah alom2-Sep-05 5:15
miah alom2-Sep-05 5:15 
Questionremoving vbcr and vbtab at the end of a string Pin
Mridang Agarwalla2-Sep-05 4:07
Mridang Agarwalla2-Sep-05 4:07 
AnswerRe: removing vbcr and vbtab at the end of a string Pin
Mohamad Al Husseiny2-Sep-05 4:47
Mohamad Al Husseiny2-Sep-05 4:47 
AnswerRe: removing vbcr and vbtab at the end of a string Pin
miah alom2-Sep-05 4:48
miah alom2-Sep-05 4:48 
AnswerRe: removing vbcr and vbtab at the end of a string Pin
Judah Gabriel Himango2-Sep-05 4:52
sponsorJudah Gabriel Himango2-Sep-05 4:52 
You could do a couple things: find the index of each undesired character using theString.IndexOf method, then remove that character using theString.Remove(index, 1). This method, while fairly simple to do, will cause lots of string allocations; for each string.Remove call, a new string will be created. Another way of doing this is to create a System.Text.StringBuilder using your string, then doing a strBuilder.Replace call to replace undesired characters with empty characters.

Perhaps the most efficient way of doing this would be to use a regular expression to swap out the undersireable characters from the end of the string. If you need help creating a regular expression, I recommend this website[^].

Tech, life, family, faith: Give me a visit.
I'm currently blogging about: Cops & Robbers
Judah Himango


AnswerRe: removing vbcr and vbtab at the end of a string Pin
Guffa2-Sep-05 5:23
Guffa2-Sep-05 5:23 
QuestionHow to create/delete access data tables? Pin
Anonymous2-Sep-05 3:49
Anonymous2-Sep-05 3:49 
AnswerRe: How to create/delete access data tables? Pin
miah alom2-Sep-05 4:46
miah alom2-Sep-05 4:46 
QuestionDatabinding Exception in my UserControl Pin
User 20930732-Sep-05 2:50
User 20930732-Sep-05 2:50 
QuestionVoice Communication in C# Pin
Zeeshan Gulzar2-Sep-05 1:40
Zeeshan Gulzar2-Sep-05 1:40 
AnswerRe: Voice Communication in C# Pin
Judah Gabriel Himango2-Sep-05 4:57
sponsorJudah Gabriel Himango2-Sep-05 4:57 
GeneralRe: Voice Communication in C# Pin
Zeeshan Gulzar2-Sep-05 22:45
Zeeshan Gulzar2-Sep-05 22:45 
GeneralRe: Voice Communication in C# Pin
Judah Gabriel Himango3-Sep-05 12:29
sponsorJudah Gabriel Himango3-Sep-05 12:29 
QuestionCombobox Items Pin
PHDENG812-Sep-05 1:27
PHDENG812-Sep-05 1:27 
AnswerRe: Combobox Items Updated Pin
PHDENG812-Sep-05 2:02
PHDENG812-Sep-05 2:02 
AnswerRe: Combobox Items Pin
Dario Solera2-Sep-05 2:10
Dario Solera2-Sep-05 2:10 
GeneralRe: Combobox Items Pin
PHDENG812-Sep-05 2:28
PHDENG812-Sep-05 2:28 
GeneralRe: Combobox Items Pin
PHDENG812-Sep-05 2:38
PHDENG812-Sep-05 2:38 
GeneralRe: Combobox Items Pin
PHDENG812-Sep-05 2:50
PHDENG812-Sep-05 2:50 
GeneralRe: Combobox Items Pin
miah alom2-Sep-05 4:39
miah alom2-Sep-05 4:39 
GeneralRe: Combobox Items Pin
Dario Solera2-Sep-05 8:46
Dario Solera2-Sep-05 8:46 
QuestionInternet Timer Pin
Illegal Operation2-Sep-05 1:21
Illegal Operation2-Sep-05 1:21 

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.