Zingo
Zingo

Reputation: 291

Writing the Dispatcher.Invoke VB.NET

Im just trying to figure out the syntax for a Dispatcher.Invoke in vb.net. I have it working in a C# application, but now i need the VB form. Here is the code i have for my C# application

 this.Dispatcher.Invoke((Action)(() =>
        {
            SOME CODE
        }));

All online sources seem to be C#, so any help would be appreciated. Thanks.

Upvotes: 3

Views: 10165

Answers (1)

David Sdot
David Sdot

Reputation: 2333

Dispatcher.Invoke(Sub()

   ' CODE 

  End Sub)

Upvotes: 15

Related Questions