Click here to Skip to main content
15,894,540 members
Home / Discussions / C#
   

C#

 
GeneralRe: Choosing and setting a control's property programatically Pin
Martin#15-Nov-07 3:09
Martin#15-Nov-07 3:09 
GeneralRe: Choosing and setting a control's property programatically Pin
Dewald15-Nov-07 4:51
Dewald15-Nov-07 4:51 
GeneralRe: Choosing and setting a control's property programatically Pin
Martin#15-Nov-07 20:35
Martin#15-Nov-07 20:35 
GeneralRe: Choosing and setting a control's property programatically Pin
Dewald15-Nov-07 21:09
Dewald15-Nov-07 21:09 
GeneralRe: Choosing and setting a control's property programatically Pin
Martin#15-Nov-07 21:11
Martin#15-Nov-07 21:11 
QuestionExecution Problem Pin
DeepOceans14-Nov-07 21:59
DeepOceans14-Nov-07 21:59 
AnswerRe: Execution Problem Pin
Adeel Chaudhry14-Nov-07 22:10
Adeel Chaudhry14-Nov-07 22:10 
GeneralRe: Execution Problem Pin
DeepOceans14-Nov-07 23:29
DeepOceans14-Nov-07 23:29 
I m sending through streaming by using 16KB buffer as:
 //Sending Side<br />
byte buf = new byte[16384];<br />
FileStream inStream = File.OpenRead(dlgOpen.FileName);         BufferedStream bufInStream = new BufferedStream(inStream);<br />
    int bytesRead;<br />
<br />
 while ((bytesRead = bufInStream.Read( buf, 0, 16384)) > 0)<br />
  sock.Send(buf,buf.Length,SocketFlags.None);    <br />

/////////////////////////////////////
At Recieving Side
<br />
FileStream outStream;<br />
outStream=File.OpenWrite(filepath);<br />
rcvfilebuf=new byte[16384];<br />
while(true)<br />
{<br />
socket.Receive(rcvfilebuf);<br />
<br />
bufOutStream = new BufferedStream(outStream);<br />
bufOutStream.Write(rcvfilebuf, 0, rcvfilebuf.Length);<br />
}<br />

This code is doing well while debugging but not in normal running of application.



Shanzay

GeneralRe: Execution Problem Pin
Adeel Chaudhry14-Nov-07 23:35
Adeel Chaudhry14-Nov-07 23:35 
GeneralRe: Execution Problem Pin
Luc Pattyn15-Nov-07 1:49
sitebuilderLuc Pattyn15-Nov-07 1:49 
GeneralRe: Execution Problem Pin
DeepOceans15-Nov-07 20:44
DeepOceans15-Nov-07 20:44 
GeneralRe: Execution Problem Pin
Luc Pattyn16-Nov-07 2:37
sitebuilderLuc Pattyn16-Nov-07 2:37 
GeneralRe: Execution Problem Pin
DeepOceans19-Nov-07 1:01
DeepOceans19-Nov-07 1:01 
GeneralRe: Execution Problem Pin
Luc Pattyn19-Nov-07 1:21
sitebuilderLuc Pattyn19-Nov-07 1:21 
QuestionChristian Graus can you help me with this? Pin
MumbleB14-Nov-07 21:40
MumbleB14-Nov-07 21:40 
AnswerRe: Christian Graus can you help me with this? Pin
Christian Graus14-Nov-07 21:53
protectorChristian Graus14-Nov-07 21:53 
GeneralRe: Christian Graus can you help me with this? Pin
MumbleB14-Nov-07 22:01
MumbleB14-Nov-07 22:01 
GeneralRe: Christian Graus can you help me with this? Pin
Christian Graus14-Nov-07 22:12
protectorChristian Graus14-Nov-07 22:12 
AnswerRe: Christian Graus can you help me with this? Pin
J4amieC14-Nov-07 22:36
J4amieC14-Nov-07 22:36 
GeneralRe: Christian Graus can you help me with this? Pin
Christian Graus14-Nov-07 22:41
protectorChristian Graus14-Nov-07 22:41 
GeneralRe: Christian Graus can you help me with this? Pin
J4amieC14-Nov-07 22:44
J4amieC14-Nov-07 22:44 
QuestionProblem in opening external program using C# Pin
sahadewa_kbe14-Nov-07 21:38
sahadewa_kbe14-Nov-07 21:38 
AnswerRe: Problem in opening external program using C# Pin
Christian Graus14-Nov-07 21:49
protectorChristian Graus14-Nov-07 21:49 
AnswerRe: Problem in opening external program using C# Pin
sahadewa_kbe18-Nov-07 17:02
sahadewa_kbe18-Nov-07 17:02 
Questionhow can i compare two word files bit to bit, in C# Pin
jayee714-Nov-07 21:06
jayee714-Nov-07 21:06 

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.