|
Hey..I'm new to VB.net programming and i'm having a problem with my project.
here's a sample code
Private Sub MinsToolStripMenuItem_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MinsToolStripMenuItem.Click
Dim b As Boolean
MsgBox(" pop up will return on " & Now.AddMinutes(5))
Dim a = Now.AddMinutes(5)
Try
b = System.Convert.ToBoolean(a)
Catch exception As System.InvalidCastException
If a = True Then
PopupNotifier1.Popup()
End If
End Try
End Sub
What i want is that after I click the MinsToolStripMenuItem, it will wait for five mins and after that, popupnotifier will popup..
Any help is greatly appreciated..
|
|
|
|
|
Following should do it:
System.Threading.Thread.Sleep(30000)
|
|
|
|