Click here to Skip to main content
15,892,517 members
Home / Discussions / C#
   

C#

 
QuestionControls on form shrinks Pin
Ganesh_T4-Dec-09 3:24
Ganesh_T4-Dec-09 3:24 
AnswerRe: Controls on form shrinks Pin
EliottA4-Dec-09 3:53
EliottA4-Dec-09 3:53 
GeneralRe: Controls on form shrinks Pin
Ganesh_T6-Dec-09 18:27
Ganesh_T6-Dec-09 18:27 
AnswerRe: Controls on form shrinks Pin
freakyit4-Dec-09 4:02
freakyit4-Dec-09 4:02 
GeneralRe: Controls on form shrinks Pin
Ganesh_T6-Dec-09 18:26
Ganesh_T6-Dec-09 18:26 
QuestionEvent handling Datagrid Xaml Pin
arun_pk4-Dec-09 2:55
arun_pk4-Dec-09 2:55 
AnswerRe: Event handling Datagrid Xaml Pin
Abhinav S4-Dec-09 3:20
Abhinav S4-Dec-09 3:20 
QuestionAsynchronous Question Pin
Programm3r4-Dec-09 2:24
Programm3r4-Dec-09 2:24 
Hi all,

Some background information:

I have a method A that calls another method B. In method B an asynchronous TCP/IP read occurs: this.tcpClient.GetStream().BeginRead(byteReadBuffer, 0, byteReadBuffer.Length, new AsyncCallback(ProcessReadBuffer), tcpClient.GetStream()); on result method ProcessReadBuffer

So my question:

How can I wait for the asynchronous ProcessReadBuffer method to complete in method B. Reason being that I require some results from ProcessReadBuffer method in method A?

Many thanks in advance.
Kind regards,


The only programmers that are better C# programmers, are those who look like this -> Green Alien | [Alien]



Java | [Coffee] Programm3r

My Blog: ^_^

AnswerRe: Asynchronous Question Pin
Rob Philpott4-Dec-09 3:02
Rob Philpott4-Dec-09 3:02 
GeneralRe: Asynchronous Question Pin
Programm3r4-Dec-09 3:06
Programm3r4-Dec-09 3:06 
AnswerRe: Asynchronous Question Pin
Abhinav S4-Dec-09 3:14
Abhinav S4-Dec-09 3:14 
GeneralRe: Asynchronous Question Pin
Programm3r4-Dec-09 3:23
Programm3r4-Dec-09 3:23 
GeneralRe: Asynchronous Question Pin
Abhinav S4-Dec-09 3:33
Abhinav S4-Dec-09 3:33 
AnswerRe: Asynchronous Question Pin
Alan N4-Dec-09 3:32
Alan N4-Dec-09 3:32 
QuestionReportViewer VS 2008 Pin
staticv4-Dec-09 2:12
staticv4-Dec-09 2:12 
AnswerRe: ReportViewer VS 2008 Pin
Giorgi Dalakishvili4-Dec-09 3:37
mentorGiorgi Dalakishvili4-Dec-09 3:37 
QuestionAttaching to Membership Database Pin
froofy4-Dec-09 1:15
froofy4-Dec-09 1:15 
AnswerRe: Attaching to Membership Database Pin
Eddy Vluggen4-Dec-09 3:14
professionalEddy Vluggen4-Dec-09 3:14 
GeneralRe: Attaching to Membership Database Pin
froofy4-Dec-09 5:17
froofy4-Dec-09 5:17 
QuestionPerformance tip on extracting BLOB from database? Pin
Thomas ST3-Dec-09 23:38
Thomas ST3-Dec-09 23:38 
AnswerRe: Performance tip on extracting BLOB from database? Pin
Luc Pattyn4-Dec-09 1:49
sitebuilderLuc Pattyn4-Dec-09 1:49 
GeneralRe: Performance tip on extracting BLOB from database? Pin
Thomas ST7-Dec-09 2:43
Thomas ST7-Dec-09 2:43 
GeneralRe: Performance tip on extracting BLOB from database? Pin
Luc Pattyn7-Dec-09 3:15
sitebuilderLuc Pattyn7-Dec-09 3:15 
GeneralRe: Performance tip on extracting BLOB from database? Pin
Thomas ST7-Dec-09 7:23
Thomas ST7-Dec-09 7:23 
AnswerRe: Performance tip on extracting BLOB from database? Pin
PIEBALDconsult4-Dec-09 3:58
mvePIEBALDconsult4-Dec-09 3:58 

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.