S
Simone Maynard
Why doesn't this work?
I wanted to have a picture visible only during the execution of a function,
but this picture never gets visible. I replaced my event call with a call to
Thread.Sleep, still doesn't work.
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles Button1.Click
PictureBox1.Visible = True
System.Threading.Thread.Sleep(2000)
'RaiseEvent OnTest(Me, New EventArgs) 'commented this out
PictureBox1.Visible = False
End Sub
Please help! Thanks!
Simone
I wanted to have a picture visible only during the execution of a function,
but this picture never gets visible. I replaced my event call with a call to
Thread.Sleep, still doesn't work.
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles Button1.Click
PictureBox1.Visible = True
System.Threading.Thread.Sleep(2000)
'RaiseEvent OnTest(Me, New EventArgs) 'commented this out
PictureBox1.Visible = False
End Sub
Please help! Thanks!
Simone