Public Sub ShowMsgboxAsync(message As Object, title As Object) As Object
Dim msg As String = message
WriteLog(msg.Replace(CRLF, "|"))
Return xui.MsgboxAsync(message, title)
End Sub
'before:
Dim sf As Object = xui.MsgboxAsync("No device found.", "Error")
Wait For (sf) Msgbox_Result (Result As Int)
'after:
Dim sf As Object = ShowMsgboxAsync("No device found.", "Error")
Wait For (sf) Msgbox_Result (Result As Int)