I am trying to get CallDelegateOnMainThreadMBS to work as CallMethodOnMainThreadMBS is now deprecated, but there are no examples for CallDelegateOnMainThreadMBS.
I want to call a Method (called doMsgOnMainThread) inside a Module (called CommonWindow), pass it a String and have it display that string. The idea is that inside a Thread I will be able to display a MsgBox later in the Main thread.
Protected Sub doMsgOnMainThread(Message As String)
When I call CallDelegateOnMainThreadMBS inside the thread, no message is displayed once the thread is complete (the breakpoint inside doMsgOnMainThread is never triggered) eg
Call CallMethodOnMainThreadMBS(AddressOf commonWindow.doMsgOnMainThread, "Display this message")
Am I holding it wrong?