I’m just beginning to study c# and am currently working on a tutorial to get my feet wet. It looks like the tutorial i’m following is a windows form tutorial but i’m working in wpf. I’ve already made some changes to accomodate this change. However, i’m not sure what to do with the invoke method in the tutorial. When I try to build the app (which uses this method) i get an error that the method does not exsist.
This is the tutorial i’m doing:
http://www.geekpedia.com/tutorial239_Csharp-Chat-Part-1—Building-the-Chat-Client.html
Thanks for your help
Method: this.Invoke()
Here is one example of it from the tutorial
this.Invoke(new UpdateLogCallback(this.UpdateLog), new object[] { "Connected Successfully!" });
I found this information:
http://ascendedguard.com/2007/08/anonymous-functions-and-invoking-in-wpf.html
However, i don’t quite understand how it all works and i’m having trouble converting the invoke line in the windows form tutorial to the format described in the link above for invoking in wpf.
Which method, exactly?
September 13th, 2009 at 9:42 pm
Which method, exactly?
References :