Click here to Skip to main content
15,908,013 members
Home / Discussions / C#
   

C#

 
QuestionApply a codec on WAVE stream Pin
gbonnet16-May-06 5:23
gbonnet16-May-06 5:23 
AnswerRe: Apply a codec on WAVE stream Pin
martin_hughes16-May-06 12:11
martin_hughes16-May-06 12:11 
GeneralRe: Apply a codec on WAVE stream Pin
gbonnet16-May-06 22:21
gbonnet16-May-06 22:21 
GeneralRe: Apply a codec on WAVE stream Pin
gbonnet17-May-06 0:02
gbonnet17-May-06 0:02 
QuestionString Manipulation Pin
martin_hughes16-May-06 5:15
martin_hughes16-May-06 5:15 
AnswerRe: String Manipulation Pin
Paul Brower16-May-06 5:28
Paul Brower16-May-06 5:28 
GeneralRe: String Manipulation Pin
Josh Smith16-May-06 6:10
Josh Smith16-May-06 6:10 
AnswerRe: String Manipulation Pin
Guffa16-May-06 5:53
Guffa16-May-06 5:53 
No, there is no method for replacing a segment of a string, but it's easy to make one:

public string ReplaceSection(string data, int pos, string replacement) {
   return data.SubString(0, pos) + replacement + data.SubString(pos + replacement.Length);
}


You might want to add some error checking to it, also.


---
b { font-weight: normal; }

AnswerRe: String Manipulation Pin
Eric Dahlvang16-May-06 6:09
Eric Dahlvang16-May-06 6:09 
AnswerRe: String Manipulation Pin
coolvinx16-May-06 11:33
coolvinx16-May-06 11:33 
AnswerRe: String Manipulation Pin
martin_hughes16-May-06 11:41
martin_hughes16-May-06 11:41 
QuestionDataGrid C# Pin
neerajsaini198216-May-06 4:09
neerajsaini198216-May-06 4:09 
QuestionHow to implement Drag'n'drop from Form to Explorer using C#?? Pin
Jakob Farian Krarup16-May-06 3:50
Jakob Farian Krarup16-May-06 3:50 
AnswerRe: How to implement Drag'n'drop from Form to Explorer using C#?? Pin
Robert Rohde16-May-06 4:07
Robert Rohde16-May-06 4:07 
GeneralRe: How to implement Drag'n'drop from Form to Explorer using C#?? Pin
Jakob Farian Krarup16-May-06 8:19
Jakob Farian Krarup16-May-06 8:19 
Questionone more question about forms ;) C# ? Pin
cmpeng3416-May-06 3:41
cmpeng3416-May-06 3:41 
AnswerRe: one more question about forms ;) C# ? Pin
Jakob Farian Krarup16-May-06 4:00
Jakob Farian Krarup16-May-06 4:00 
GeneralMessage Closed Pin
16-May-06 22:31
cmpeng3416-May-06 22:31 
GeneralRe: one more question about forms ;) C# ? Pin
Jakob Farian Krarup17-May-06 1:21
Jakob Farian Krarup17-May-06 1:21 
QuestionHelp needed with datagrid control Pin
buzzy8416-May-06 3:30
buzzy8416-May-06 3:30 
Questionstring replace function Pin
Rizwan Bashir16-May-06 2:28
Rizwan Bashir16-May-06 2:28 
AnswerRe: string replace function Pin
Robert Rohde16-May-06 2:41
Robert Rohde16-May-06 2:41 
AnswerRe: string replace function Pin
coolestCoder16-May-06 2:53
coolestCoder16-May-06 2:53 
AnswerRe: string replace function Pin
Guffa16-May-06 3:23
Guffa16-May-06 3:23 
AnswerRe: string replace function Pin
coolestCoder16-May-06 3:27
coolestCoder16-May-06 3:27 

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.