Click here to Skip to main content
15,890,717 members
Home / Discussions / C#
   

C#

 
GeneralRe: [DllImport] questen Pin
QzRz17-May-06 20:36
QzRz17-May-06 20:36 
Questionwindows title bar Pin
gonzalesman17-May-06 7:11
gonzalesman17-May-06 7:11 
AnswerRe: windows title bar Pin
NaNg1524117-May-06 7:47
NaNg1524117-May-06 7:47 
QuestionC# struct confusion Pin
thrakazog17-May-06 6:13
thrakazog17-May-06 6:13 
AnswerRe: C# struct confusion Pin
leppie17-May-06 8:51
leppie17-May-06 8:51 
QuestionCreate windows account (user) Pin
supercali17-May-06 6:11
supercali17-May-06 6:11 
QuestionRead/Write issues asap. Pin
DeepToot17-May-06 6:00
DeepToot17-May-06 6:00 
AnswerRe: Read/Write issues asap. Pin
Guffa17-May-06 8:18
Guffa17-May-06 8:18 
You are using += instead of = when assigning the result of the replacement to the string. That means that you are creating a new string by concatenating the original string with the replaced string.

You should do all the replacements first, then write the resulting string to the StreamWriter. If you write the string after each replacement, if the line contains more than one content holder you will be writing the line several times, and only the last one fully processed.


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

GeneralRe: Read/Write issues asap. Pin
DeepToot18-May-06 2:44
DeepToot18-May-06 2:44 
GeneralRe: Read/Write issues asap. Pin
Guffa18-May-06 7:44
Guffa18-May-06 7:44 
GeneralRe: Read/Write issues asap. Pin
DeepToot18-May-06 7:47
DeepToot18-May-06 7:47 
QuestionExcel.XlDirection problem Pin
StyleGuide17-May-06 5:56
StyleGuide17-May-06 5:56 
QuestionDate And Time Pin
| Muhammad Waqas Butt |17-May-06 5:55
professional| Muhammad Waqas Butt |17-May-06 5:55 
AnswerRe: Date And Time Pin
NaNg1524117-May-06 6:54
NaNg1524117-May-06 6:54 
AnswerRe: Date And Time Pin
NaNg1524118-May-06 2:37
NaNg1524118-May-06 2:37 
QuestionDataGridView - row height bigger than grid's height Pin
Pedro Miguel Pereira17-May-06 5:08
Pedro Miguel Pereira17-May-06 5:08 
Question2.0 gridview Pin
fmardani17-May-06 4:48
fmardani17-May-06 4:48 
QuestionPassing enum as a parameter Pin
dayakar_dn17-May-06 4:43
dayakar_dn17-May-06 4:43 
AnswerRe: Passing enum as a parameter Pin
NaNg1524117-May-06 5:07
NaNg1524117-May-06 5:07 
QuestionToolStripComboBox problem Pin
Wjousts17-May-06 3:47
Wjousts17-May-06 3:47 
QuestionCheckbox control Pin
jackalfb17-May-06 3:31
jackalfb17-May-06 3:31 
AnswerRe: Checkbox control Pin
stancrm17-May-06 3:45
stancrm17-May-06 3:45 
GeneralRe: Checkbox control Pin
jackalfb17-May-06 4:38
jackalfb17-May-06 4:38 
GeneralRe: Checkbox control Pin
microsoc17-May-06 20:04
microsoc17-May-06 20:04 
GeneralRe: Checkbox control Pin
jackalfb20-May-06 1:36
jackalfb20-May-06 1:36 

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.