G
Guest
To my surprise, I could not find an easy way to show a timed message with
either MessageBox() or MsgBox(). Here is some code that I tried
unsuccessfully:
Dim t As New Threading.Thread(New Threading.ThreadStart(AddressOf
ShowMessage))
t.IsBackground = True
t.Start()
System.Threading.Thread.Sleep(5000)
t.Abort()
========================
Private Sub ShowMessage()
MessageBox.Show("This message is displayed for 5 seconds")
End Sub
My Internet searches were not successful. There must be an easy way to do
this.
either MessageBox() or MsgBox(). Here is some code that I tried
unsuccessfully:
Dim t As New Threading.Thread(New Threading.ThreadStart(AddressOf
ShowMessage))
t.IsBackground = True
t.Start()
System.Threading.Thread.Sleep(5000)
t.Abort()
========================
Private Sub ShowMessage()
MessageBox.Show("This message is displayed for 5 seconds")
End Sub
My Internet searches were not successful. There must be an easy way to do
this.