Private Sub Timer1_Tick(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Timer1.Tick If Not PictureBox1.Visible AndAlso Not PictureBox2.Visible then Timer1.Stop End If End Sub
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)