Click here to Skip to main content
15,887,485 members
Home / Discussions / C#
   

C#

 
QuestionDataGrid ??? Pin
Christian Graus11-Nov-02 0:05
protectorChristian Graus11-Nov-02 0:05 
AnswerRe: DataGrid ??? Pin
James T. Johnson11-Nov-02 3:00
James T. Johnson11-Nov-02 3:00 
AnswerRe: DataGrid ??? Pin
leppie11-Nov-02 6:27
leppie11-Nov-02 6:27 
General.NET Training Institute Pin
ReachAnshul10-Nov-02 19:30
ReachAnshul10-Nov-02 19:30 
GeneralRe: .NET Training Institute Pin
Christian Graus10-Nov-02 19:43
protectorChristian Graus10-Nov-02 19:43 
GeneralBindingsCollection Pin
Alan Todtenkopf9-Nov-02 11:19
Alan Todtenkopf9-Nov-02 11:19 
GeneralRe: BindingsCollection Pin
James T. Johnson9-Nov-02 11:25
James T. Johnson9-Nov-02 11:25 
GeneralDownloading files with Webrequest Pin
Anonymous9-Nov-02 7:40
Anonymous9-Nov-02 7:40 
How do I determine when to stop reading from the response stream on a webrequest? It seems that if I do
while (bytesread > 0)
bytesread = bufferedrdr.Read(buffer, 0, buffer.Length);

I'll get incomplete files. Looks like the stream returns 0 bytes read whenever the internet connection lags. Most of the example code does use a 0/-1 return code to determine when to stop reading.

The read method doesn't wait until there is new data in the stream does it? Confused as to how to determine when the end of the file is downloaded.
GeneralRe: Downloading files with Webrequest Pin
Stephane Rodriguez.9-Nov-02 8:10
Stephane Rodriguez.9-Nov-02 8:10 
GeneralRe: Downloading files with Webrequest Pin
Anonymous9-Nov-02 9:17
Anonymous9-Nov-02 9:17 
GeneralRe: Downloading files with Webrequest Pin
Stephane Rodriguez.9-Nov-02 9:25
Stephane Rodriguez.9-Nov-02 9:25 
GeneralAgain dialog ... :( Pin
Karavaev Denis9-Nov-02 5:29
Karavaev Denis9-Nov-02 5:29 
GeneralRe: Well... Pin
Masaaki Onishi10-Nov-02 7:15
Masaaki Onishi10-Nov-02 7:15 
GeneralRe: Well... Pin
Karavaev Denis10-Nov-02 16:36
Karavaev Denis10-Nov-02 16:36 
GeneralRe: Ooops. Pin
Masaaki Onishi10-Nov-02 17:29
Masaaki Onishi10-Nov-02 17:29 
GeneralRe: Ooops. Pin
Karavaev Denis11-Nov-02 2:36
Karavaev Denis11-Nov-02 2:36 
GeneralRe: Again dialog ... :( Pin
mikasa11-Nov-02 6:52
mikasa11-Nov-02 6:52 
GeneralA simple function pointer question... Pin
Dave Kerr9-Nov-02 0:40
Dave Kerr9-Nov-02 0:40 
GeneralRe: A simple function pointer question... Pin
beetung9-Nov-02 1:13
beetung9-Nov-02 1:13 
GeneralRe: A simple function pointer question... Pin
Stephane Rodriguez.9-Nov-02 2:50
Stephane Rodriguez.9-Nov-02 2:50 
GeneralMDI application Pin
Le centriste8-Nov-02 17:43
Le centriste8-Nov-02 17:43 
GeneralRe: MDI application Pin
Stephane Rodriguez.8-Nov-02 19:37
Stephane Rodriguez.8-Nov-02 19:37 
GeneralRe: MDI application Pin
Le centriste9-Nov-02 7:33
Le centriste9-Nov-02 7:33 
GeneralRe: MDI application Pin
Eric Gunnerson (msft)11-Nov-02 7:44
Eric Gunnerson (msft)11-Nov-02 7:44 
GeneralFileSize Pin
kavehdr8-Nov-02 12:08
kavehdr8-Nov-02 12: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.