Click here to Skip to main content
16,017,650 members
Home / Discussions / C#
   

C#

 
QuestionHow to synchronize client database and server database using C#? Pin
pubududilena17-May-05 18:15
pubududilena17-May-05 18:15 
AnswerRe: How to synchronize client database and server database using C#? Pin
Christian Graus17-May-05 19:05
protectorChristian Graus17-May-05 19:05 
GeneralResizing a richTextBox to fit contents please help Pin
OnlyTaz17-May-05 17:44
OnlyTaz17-May-05 17:44 
GeneralC++ dll interoperate with C# Pin
ivyhill17-May-05 15:09
ivyhill17-May-05 15:09 
GeneralRe: C++ dll interoperate with C# Pin
Mervick17-May-05 15:27
Mervick17-May-05 15:27 
GeneralRe: C++ dll interoperate with C# Pin
ivyhill20-May-05 13:19
ivyhill20-May-05 13:19 
GeneralFlushing/closing streams Pin
methodincharge17-May-05 14:04
methodincharge17-May-05 14:04 
GeneralRe: Flushing/closing streams Pin
S. Senthil Kumar17-May-05 19:48
S. Senthil Kumar17-May-05 19:48 
You don't need to close the NetworkStream after closing the StreamWriter, the StreamWriter does it for you. MSDN says "Closes the current StreamWriter and the underlying stream". And closing the StreamWriter flushes it, so you don't need to Flush<code> before <code>Close
In short, all you need is
streamWriter.Close();

And you must close it both on the client and the server, each end creates some resources that must be released by calling Close.

Regards
Senthil
_____________________________
My Blog | My Articles | WinMacro
Question?How can I get the I/O Address of a parallel port using WMI? Pin
Member 162442717-May-05 12:26
Member 162442717-May-05 12:26 
Generalmanage a textbox from another form Pin
Sasuko17-May-05 12:20
Sasuko17-May-05 12:20 
GeneralRe: manage a textbox from another form Pin
DavidNohejl17-May-05 13:24
DavidNohejl17-May-05 13:24 
GeneralRe: manage a textbox from another form Pin
Anonymous17-May-05 21:11
Anonymous17-May-05 21:11 
GeneralRe: manage a textbox from another form Pin
MoustafaS18-May-05 2:16
MoustafaS18-May-05 2:16 
Generalfsdffsfsa Pin
Ken Fredrikson17-May-05 11:17
Ken Fredrikson17-May-05 11:17 
GeneralRe: fsdffsfsa Pin
Luis Alonso Ramos17-May-05 19:34
Luis Alonso Ramos17-May-05 19:34 
GeneralRe: fsdffsfsa Pin
MoustafaS18-May-05 2:18
MoustafaS18-May-05 2:18 
GeneralC# debugging Pin
methodincharge17-May-05 10:34
methodincharge17-May-05 10:34 
GeneralRe: C# debugging Pin
Judah Gabriel Himango17-May-05 11:01
sponsorJudah Gabriel Himango17-May-05 11:01 
GeneralRe: C# debugging Pin
Tom Larsen17-May-05 12:23
Tom Larsen17-May-05 12:23 
GeneralRe: C# debugging Pin
leppie17-May-05 13:54
leppie17-May-05 13:54 
GeneralRe: C# debugging Pin
Tom Larsen18-May-05 4:43
Tom Larsen18-May-05 4:43 
QuestionHelp... ...please? Pin
Anthony Mushrow17-May-05 9:31
professionalAnthony Mushrow17-May-05 9:31 
AnswerRe: Help... ...please? Pin
Judah Gabriel Himango17-May-05 9:53
sponsorJudah Gabriel Himango17-May-05 9:53 
GeneralError Pin
StephenMcAllister17-May-05 8:58
StephenMcAllister17-May-05 8:58 
GeneralRe: Error Pin
Roger Stewart17-May-05 9:08
professionalRoger Stewart17-May-05 9:08 

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.