Click here to Skip to main content
15,921,660 members
Home / Discussions / C#
   

C#

 
GeneralRe: Dynamically changing font font-style size and color of a label Pin
Christian Graus25-Oct-07 0:50
protectorChristian Graus25-Oct-07 0:50 
QuestionHow to get previous focused control? Pin
Tavbi25-Oct-07 0:22
Tavbi25-Oct-07 0:22 
AnswerRe: How to get previous focused control? Pin
Chintan.Desai25-Oct-07 1:59
Chintan.Desai25-Oct-07 1:59 
QuestionManaging Excel Sheets with C# Pin
dudedotnet25-Oct-07 0:11
dudedotnet25-Oct-07 0:11 
AnswerRe: Managing Excel Sheets with C# Pin
martin_hughes25-Oct-07 2:54
martin_hughes25-Oct-07 2:54 
QuestionCreating a word document using c# Pin
Fahim A Salim24-Oct-07 23:37
Fahim A Salim24-Oct-07 23:37 
AnswerRe: Creating a word document using c# Pin
Chintan.Desai25-Oct-07 2:03
Chintan.Desai25-Oct-07 2:03 
AnswerRe: Creating a word document using c# Pin
Paul Conrad27-Oct-07 12:32
professionalPaul Conrad27-Oct-07 12:32 
Question£ symbol in csv file for Excel - Encoding weirdness - HELP! Pin
Gizz24-Oct-07 23:27
Gizz24-Oct-07 23:27 
AnswerRe: £ symbol in csv file for Excel - Encoding weirdness - HELP! Pin
Guffa25-Oct-07 0:48
Guffa25-Oct-07 0:48 
Questionuse Process class on Mono? Pin
bug_aonz24-Oct-07 23:27
bug_aonz24-Oct-07 23:27 
AnswerRe: use Process class on Mono? Pin
Stefan Troschuetz24-Oct-07 23:57
Stefan Troschuetz24-Oct-07 23:57 
QuestionHow to Cancel BindingNavigator event (AddItem) while BindingNavigator operates on two BindingSources Pin
azifaliazif24-Oct-07 23:19
azifaliazif24-Oct-07 23:19 
QuestionAsynchronous Web Service Calls from Client Application Pin
Neeraj Kr24-Oct-07 23:04
Neeraj Kr24-Oct-07 23:04 
QuestionRe: Asynchronous Web Service Calls from Client Application Pin
MCEdwards24-Oct-07 23:13
MCEdwards24-Oct-07 23:13 
AnswerRe: Asynchronous Web Service Calls from Client Application Pin
Neeraj Kr24-Oct-07 23:24
Neeraj Kr24-Oct-07 23:24 
GeneralRe: Asynchronous Web Service Calls from Client Application Pin
MCEdwards25-Oct-07 0:39
MCEdwards25-Oct-07 0:39 
Sorry my information is a little out of date. Things have changed it seems from 1.1 to 2. Anyway I created a quick test service and console app. You need to assign an event handler to the completed event for the method invoked. Then invoke the method using the async method call. The result of the method call is contained in the event args passed into the event handler.

You have to think about the race condition between the main thread and the async thread when using this method of invoking the async call.

Here is my code:

static void Main(string[] args)
{
TestConsoleApp.localhost.Test Test = new TestConsoleApp.localhost.Test();
Test.HelloWorldCompleted += new TestConsoleApp.localhost.HelloWorldCompletedEventHandler(Test_HelloWorldCompleted);
Test.HelloWorldAsync();
Console.ReadLine();

}

static void Test_HelloWorldCompleted(object sender, TestConsoleApp.localhost.HelloWorldCompletedEventArgs e)
{
Console.Write(e.Result.ToString());
}

Hope this makes sense
GeneralRe: Asynchronous Web Service Calls from Client Application Pin
Neeraj Kr25-Oct-07 0:49
Neeraj Kr25-Oct-07 0:49 
GeneralRe: Asynchronous Web Service Calls from Client Application Pin
MCEdwards25-Oct-07 1:26
MCEdwards25-Oct-07 1:26 
GeneralRe: Asynchronous Web Service Calls from Client Application Pin
Neeraj Kr25-Oct-07 2:30
Neeraj Kr25-Oct-07 2:30 
AnswerRe: Asynchronous Web Service Calls from Client Application Pin
Pete O'Hanlon24-Oct-07 23:23
mvePete O'Hanlon24-Oct-07 23:23 
GeneralRe: Asynchronous Web Service Calls from Client Application Pin
Neeraj Kr24-Oct-07 23:27
Neeraj Kr24-Oct-07 23:27 
GeneralRe: Asynchronous Web Service Calls from Client Application Pin
Pete O'Hanlon24-Oct-07 23:37
mvePete O'Hanlon24-Oct-07 23:37 
GeneralRe: Asynchronous Web Service Calls from Client Application Pin
Neeraj Kr24-Oct-07 23:41
Neeraj Kr24-Oct-07 23:41 
GeneralRe: Asynchronous Web Service Calls from Client Application Pin
Pete O'Hanlon25-Oct-07 1:05
mvePete O'Hanlon25-Oct-07 1:05 

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.