Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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.

like image 253
Zingo Avatar asked Dec 08 '25 19:12

Zingo


1 Answers

Dispatcher.Invoke(Sub()

   ' CODE 

  End Sub)
like image 183
David Sdot Avatar answered Dec 11 '25 22:12

David Sdot



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!