Click here to Skip to main content
16,005,389 members
Home / Discussions / C#
   

C#

 
GeneralRe: App.Config Question... Pin
Nick Parker7-Jan-05 8:38
protectorNick Parker7-Jan-05 8:38 
GeneralRe: App.Config Question... Pin
Richard Parsons7-Jan-05 9:12
Richard Parsons7-Jan-05 9:12 
QuestionHow can I make the datagrid invisible and have the save button come up Pin
macupryk7-Jan-05 8:10
macupryk7-Jan-05 8:10 
AnswerRe: How can I make the datagrid invisible and have the save button come up Pin
Nick Parker7-Jan-05 8:30
protectorNick Parker7-Jan-05 8:30 
GeneralBeginRead() EndRead() methods with NetworkStream class Pin
mikeyhardingboyo7-Jan-05 6:53
mikeyhardingboyo7-Jan-05 6:53 
GeneralRe: BeginRead() EndRead() methods with NetworkStream class Pin
Heath Stewart7-Jan-05 7:38
protectorHeath Stewart7-Jan-05 7:38 
GeneralRe: BeginRead() EndRead() methods with NetworkStream class Pin
mikeyhardingboyo7-Jan-05 8:04
mikeyhardingboyo7-Jan-05 8:04 
GeneralRe: BeginRead() EndRead() methods with NetworkStream class Pin
Heath Stewart7-Jan-05 9:15
protectorHeath Stewart7-Jan-05 9:15 
I'm not sure I follow you completely. All you need to do is use BeginRead once while your main thread of execution continues (to update an animated "wait" graphics or something). In your AsyncCallback you call EndRead as you're doing and you've call the data.

Take a look in the .NET Framework SDK documentation at the NetworkStream.BeginRead and EndRead methods. The two together form a complete solution (i.e., a callback is created in the docs for BeginRead that is defined in the example for EndRead). What you have is similar, but the examples - and the documentation itself - may help you discover what the problem is.

Otherwise, please post your complete solution (minus any code that actually acts on the data or updates a UI, etc., for brevity's sake).

This posting is provided "AS IS" with no warranties, and confers no rights.

Software Design Engineer
Developer Division Sustained Engineering
Microsoft

[My Articles] [My Blog]
GeneralRe: BeginRead() EndRead() methods with NetworkStream class Pin
mikeyhardingboyo7-Jan-05 17:19
mikeyhardingboyo7-Jan-05 17:19 
GeneralRe: Strange Pin
bouli7-Jan-05 6:52
bouli7-Jan-05 6:52 
GeneralRe: Strange Pin
Heath Stewart7-Jan-05 7:52
protectorHeath Stewart7-Jan-05 7:52 
GeneralRe: Strange Pin
bouli7-Jan-05 8:54
bouli7-Jan-05 8:54 
GeneralRe: Strange Pin
Heath Stewart7-Jan-05 9:03
protectorHeath Stewart7-Jan-05 9:03 
GeneralRe: Strange Pin
bouli7-Jan-05 9:10
bouli7-Jan-05 9:10 
GeneralStrange Pin
bouli7-Jan-05 6:30
bouli7-Jan-05 6:30 
GeneralRe: Strange Pin
Heath Stewart7-Jan-05 6:44
protectorHeath Stewart7-Jan-05 6:44 
GeneralRe: Strange Pin
bouli7-Jan-05 6:47
bouli7-Jan-05 6:47 
Generaldate time control Pin
Anonymous7-Jan-05 5:35
Anonymous7-Jan-05 5:35 
GeneralRe: date time control Pin
Heath Stewart7-Jan-05 6:42
protectorHeath Stewart7-Jan-05 6:42 
GeneralRe: date time control Pin
Anonymous7-Jan-05 7:18
Anonymous7-Jan-05 7:18 
GeneralRe: date time control Pin
Heath Stewart7-Jan-05 7:33
protectorHeath Stewart7-Jan-05 7:33 
GeneralUdp. How to recieve. Pin
Umair Ahmad khan7-Jan-05 5:05
Umair Ahmad khan7-Jan-05 5:05 
GeneralRe: Udp. How to recieve. Pin
Heath Stewart7-Jan-05 6:34
protectorHeath Stewart7-Jan-05 6:34 
GeneralDoubts in Arabic Part of Work Pin
ChandruIT7-Jan-05 4:34
ChandruIT7-Jan-05 4:34 
GeneralRe: Doubts in Arabic Part of Work Pin
Nick Parker7-Jan-05 5:26
protectorNick Parker7-Jan-05 5:26 

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.