Click here to Skip to main content
15,900,495 members
Home / Discussions / C#
   

C#

 
Questioncan TcpClient :: GetStream() be used in separate threads for the same TcpClient ? Pin
abiemann23-Nov-09 12:44
abiemann23-Nov-09 12:44 
AnswerRe: can TcpClient :: GetStream() be used in separate threads for the same TcpClient ? Pin
April Fans24-Nov-09 0:32
April Fans24-Nov-09 0:32 
AnswerRe: can TcpClient :: GetStream() be used in separate threads for the same TcpClient ? Pin
Paulo Zemek24-Nov-09 1:15
Paulo Zemek24-Nov-09 1:15 
GeneralRe: can TcpClient :: GetStream() be used in separate threads for the same TcpClient ? Pin
abiemann30-Nov-09 6:41
abiemann30-Nov-09 6:41 
QuestionWebbrowser control print preview not working for background color Pin
Shukra23-Nov-09 12:04
Shukra23-Nov-09 12:04 
AnswerRe: Webbrowser control print preview not working for background color Pin
Dave Kreskowiak23-Nov-09 12:52
mveDave Kreskowiak23-Nov-09 12:52 
AnswerRe: Webbrowser control print preview not working for background color Pin
Ravi Bhavnani23-Nov-09 13:55
professionalRavi Bhavnani23-Nov-09 13:55 
GeneralRe: Webbrowser control print preview not working for background color Pin
Shukra23-Nov-09 17:23
Shukra23-Nov-09 17:23 
AnswerRe: Webbrowser control print preview not working for background color Pin
Ravi Bhavnani23-Nov-09 17:47
professionalRavi Bhavnani23-Nov-09 17:47 
QuestionEmgu CV Vs AForge.NET Vs OpenCVDotNet Pin
Lynndah21223-Nov-09 8:55
Lynndah21223-Nov-09 8:55 
AnswerRe: Emgu CV Vs AForge.NET Vs OpenCVDotNet Pin
Dave Kreskowiak23-Nov-09 10:18
mveDave Kreskowiak23-Nov-09 10:18 
GeneralRe: Emgu CV Vs AForge.NET Vs OpenCVDotNet Pin
Lynndah21223-Nov-09 11:14
Lynndah21223-Nov-09 11:14 
GeneralRe: Emgu CV Vs AForge.NET Vs OpenCVDotNet Pin
Dave Kreskowiak23-Nov-09 12:51
mveDave Kreskowiak23-Nov-09 12:51 
QuestionRead and Write a file at the same time? Pin
Tony496623-Nov-09 4:41
Tony496623-Nov-09 4:41 
AnswerRe: Read and Write a file at the same time? Pin
Eddy Vluggen23-Nov-09 4:44
professionalEddy Vluggen23-Nov-09 4:44 
AnswerRe: Read and Write a file at the same time? Pin
PIEBALDconsult23-Nov-09 5:02
mvePIEBALDconsult23-Nov-09 5:02 
GeneralRe: Read and Write a file at the same time? Pin
Tony496623-Nov-09 5:24
Tony496623-Nov-09 5:24 
GeneralRe: Read and Write a file at the same time? Pin
Ghydo23-Nov-09 6:57
Ghydo23-Nov-09 6:57 
You can create a FileStream that allows read access using this[^] constructor:
Stream stream = new FileStream(path + filename, FileAccess.OpenOrCreate, FileAccess.Write, FileShare.Read);
TextWriter writer = new StreamWriter(stream);
Also it is a better pratice to dispose of the stream, enclosing them with the using keyword.
GeneralRe: Read and Write a file at the same time? Pin
dojohansen23-Nov-09 8:02
dojohansen23-Nov-09 8:02 
GeneralRe: Read and Write a file at the same time? [modified] Pin
abiemann23-Nov-09 12:36
abiemann23-Nov-09 12:36 
GeneralRe: Read and Write a file at the same time? Pin
dojohansen23-Nov-09 23:50
dojohansen23-Nov-09 23:50 
AnswerRe: Read and Write a file at the same time? PinPopular
Alan N23-Nov-09 6:57
Alan N23-Nov-09 6:57 
GeneralRe: Read and Write a file at the same time? Pin
Tony496624-Nov-09 3:53
Tony496624-Nov-09 3:53 
AnswerRe: Read and Write a file at the same time? Pin
Luc Pattyn23-Nov-09 14:04
sitebuilderLuc Pattyn23-Nov-09 14:04 
GeneralRe: Read and Write a file at the same time? Pin
Paulo Zemek24-Nov-09 1:30
Paulo Zemek24-Nov-09 1:30 

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.