I\'ve read that the C# version is as follows:
Application.Current.Dispatcher.Invoke( DispatcherPriority.Background, new Action(delegate {
Use the Function keyword:
Application.Current.Dispatcher.Invoke(DispatcherPriority.Background, New Action(Function() Do ... End Function))