Click here to Skip to main content
15,917,320 members
Home / Discussions / C#
   

C#

 
AnswerRe: how to change property of form in an other started thread? Pin
Henry Minute21-Apr-09 8:16
Henry Minute21-Apr-09 8:16 
GeneralRe: how to change property of form in an other started thread? [modified] Pin
Sajjad Izadi21-Apr-09 9:03
Sajjad Izadi21-Apr-09 9:03 
AnswerRe: how to change property of form in an other started thread? [modified] Pin
DaveyM6921-Apr-09 10:44
professionalDaveyM6921-Apr-09 10:44 
QuestionWhere to start? - Calculating the size of an object (square footage) in an image Pin
shultas21-Apr-09 8:06
shultas21-Apr-09 8:06 
AnswerRe: Where to start? - Calculating the size of an object (square footage) in an image Pin
Henry Minute21-Apr-09 8:19
Henry Minute21-Apr-09 8:19 
AnswerRe: Where to start? - Calculating the size of an object (square footage) in an image Pin
bulg21-Apr-09 12:11
bulg21-Apr-09 12:11 
QuestionEmbed PDF viewer in C# Windows App Pin
Engineer Joe21-Apr-09 7:24
Engineer Joe21-Apr-09 7:24 
QuestionReturn a function value after leaving the function and wait for corresponding event? Pin
rpm820021-Apr-09 5:05
rpm820021-Apr-09 5:05 
Hi again,
I wonder if there is any possibility to accomplish the following:

A GUI has a button with attached eventhadler (button_click).

In this eventhandler, there shall be called a function, that gathers some information. The information iInfo shall be returned like

int iInfo = gatherSomeInfo();

to the eventhandler button_click in the GUI.

Here is the Problem: The gatherSomeInfo() function needs eventhandling to collect all information. So I have to leave the gatherSomeInfo() function before knowing what to return and loosing the ability to send the needed information back (as return value). It is not possible to collect all information and immediatly return from this gatherSomeInfo() function back to the eventhandler in the GUI.

The gatherSomeInfo() Function is hooked into another event (of another thread in fact) that finally signals the info. From that moment on I could send a return value but I don't know how.

The function call of gatherSomeInfo() within the button_click eventhandler would block the further execution (if waiting for return value) until the return is done but that would exactly be what I need for this procedure.

How can I do this??? I can't believe that there is no way to do that. Can anyone help please???
AnswerRe: Return a function value after leaving the function and wait for corresponding event? Pin
DaveyM6921-Apr-09 5:53
professionalDaveyM6921-Apr-09 5:53 
QuestionDeleting a node from Xml Pin
MehmetKocc21-Apr-09 4:49
MehmetKocc21-Apr-09 4:49 
AnswerRe: Deleting a node from Xml Pin
Christian Graus21-Apr-09 11:24
protectorChristian Graus21-Apr-09 11:24 
QuestionGet const-collection from code? Pin
Ariadne21-Apr-09 4:29
Ariadne21-Apr-09 4:29 
AnswerRe: Get const-collection from code? Pin
DaveyM6921-Apr-09 4:49
professionalDaveyM6921-Apr-09 4:49 
GeneralRe: Get const-collection from code? Pin
OriginalGriff21-Apr-09 4:54
mveOriginalGriff21-Apr-09 4:54 
GeneralRe: Get const-collection from code? Pin
Pete O'Hanlon21-Apr-09 4:57
mvePete O'Hanlon21-Apr-09 4:57 
GeneralRe: Get const-collection from code? Pin
OriginalGriff21-Apr-09 5:07
mveOriginalGriff21-Apr-09 5:07 
AnswerRe: Get const-collection from code? Pin
Pete O'Hanlon21-Apr-09 4:56
mvePete O'Hanlon21-Apr-09 4:56 
GeneralRe: Get const-collection from code? Pin
Ariadne22-Apr-09 2:02
Ariadne22-Apr-09 2:02 
AnswerRe: Get const-collection from code? Pin
Rolando CC21-Apr-09 5:30
professionalRolando CC21-Apr-09 5:30 
QuestionAccessing File from Remote PC Pin
satsumatable21-Apr-09 4:21
satsumatable21-Apr-09 4:21 
AnswerRe: Accessing File from Remote PC Pin
Rolando CC21-Apr-09 5:39
professionalRolando CC21-Apr-09 5:39 
Questionthe best way to draw a calendar in C# Pin
student198821-Apr-09 4:10
student198821-Apr-09 4:10 
AnswerRe: the best way to draw a calendar in C# Pin
Rob Philpott21-Apr-09 4:44
Rob Philpott21-Apr-09 4:44 
GeneralRe: the best way to draw a calendar in C# Pin
student198821-Apr-09 5:20
student198821-Apr-09 5:20 
GeneralRe: the best way to draw a calendar in C# Pin
musefan21-Apr-09 5:54
musefan21-Apr-09 5:54 

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.