Invoke Method for C# WPF? | Programming, .NET, Silverlight & More

Invoke Method for C# WPF?

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?

No TweetBacks yet. (Be the first to Tweet this post)

One Response

  1. Colanth Says:

    Which method, exactly?
    References :

Leave a Comment

Please note: Comment moderation is enabled and may delay your comment. There is no need to resubmit your comment.