Click here to Skip to main content
15,888,218 members
Home / Discussions / C#
   

C#

 
AnswerRe: Semantic music engine Pin
Pete O'Hanlon5-Mar-12 8:54
mvePete O'Hanlon5-Mar-12 8:54 
QuestionReturn Value From Async Call Pin
Kevin Marois5-Mar-12 6:15
professionalKevin Marois5-Mar-12 6:15 
AnswerRe: Return Value From Async Call Pin
Pete O'Hanlon5-Mar-12 6:45
mvePete O'Hanlon5-Mar-12 6:45 
AnswerRe: Return Value From Async Call Pin
Luc Pattyn5-Mar-12 8:12
sitebuilderLuc Pattyn5-Mar-12 8:12 
AnswerRe: Return Value From Async Call Pin
SledgeHammer015-Mar-12 10:08
SledgeHammer015-Mar-12 10:08 
GeneralRe: Return Value From Async Call Pin
Dave Kreskowiak5-Mar-12 11:34
mveDave Kreskowiak5-Mar-12 11:34 
AnswerRe: Return Value From Async Call Pin
Mycroft Holmes5-Mar-12 14:46
professionalMycroft Holmes5-Mar-12 14:46 
AnswerRe: Return Value From Async Call Pin
BobJanova5-Mar-12 22:01
BobJanova5-Mar-12 22:01 
You can't, and if you think about it you'll see why: the whole purpose of asynchronous programming is that the request returns before it completes, so you can't have the result of running the method. You have two options:
i) call the method synchronously, or
ii) accept that you won't have the result, populate a member variable in the callback and have any downstream code that might read it check whether it's initialised. (If it's not, you can either abort the process or re-queue it, possibly with a delay, depending on what you are trying to do and which is appropriate.)
QuestionWinform linked to Entity Data Model Pin
pmcm5-Mar-12 5:25
pmcm5-Mar-12 5:25 
QuestionVB input box in C# Pin
glennPattonWork35-Mar-12 5:23
professionalglennPattonWork35-Mar-12 5:23 
AnswerRe: VB input box in C# Pin
Richard MacCutchan5-Mar-12 5:30
mveRichard MacCutchan5-Mar-12 5:30 
AnswerRe: VB input box in C# Pin
DaveyM695-Mar-12 7:02
professionalDaveyM695-Mar-12 7:02 
AnswerRe: VB input box in C# Pin
Luc Pattyn5-Mar-12 8:16
sitebuilderLuc Pattyn5-Mar-12 8:16 
GeneralRe: VB input box in C# Pin
glennPattonWork35-Mar-12 21:40
professionalglennPattonWork35-Mar-12 21:40 
AnswerRe: VB input box in C# Pin
glennPattonWork35-Mar-12 21:42
professionalglennPattonWork35-Mar-12 21:42 
QuestionCheckbox Column in DataGridView Pin
MWRivera5-Mar-12 5:20
MWRivera5-Mar-12 5:20 
AnswerRe: Checkbox Column in DataGridView Pin
MWRivera5-Mar-12 7:22
MWRivera5-Mar-12 7:22 
QuestionInsert Duplicate into Hashset Pin
sharma.ravi215-Mar-12 1:11
sharma.ravi215-Mar-12 1:11 
AnswerRe: Insert Duplicate into Hashset Pin
Luc Pattyn5-Mar-12 2:03
sitebuilderLuc Pattyn5-Mar-12 2:03 
AnswerRe: Insert Duplicate into Hashset Pin
PIEBALDconsult5-Mar-12 2:06
mvePIEBALDconsult5-Mar-12 2:06 
AnswerRe: Insert Duplicate into Hashset Pin
Shameel5-Mar-12 2:15
professionalShameel5-Mar-12 2:15 
AnswerRe: Insert Duplicate into Hashset Pin
Dean Oliver5-Mar-12 2:58
Dean Oliver5-Mar-12 2:58 
AnswerRe: Insert Duplicate into Hashset Pin
Montasser Ben Ouhida5-Mar-12 3:32
Montasser Ben Ouhida5-Mar-12 3:32 
Questioncombobox filter in datagridview filterpoup Pin
polachan5-Mar-12 0:56
polachan5-Mar-12 0:56 
Questionrunning multiple dos commands (including TFS commands) in c# Pin
canakcan4-Mar-12 22:40
canakcan4-Mar-12 22:40 

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.