Hi Fyre..
here is the way to check whether the form is closed or hidden and perform the action according to it
Hope it helpsVB Code:
Dim f2 As New Form2 Private Sub Button1_Click_1(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click If f2.IsDisposed = True Then f2 = New Form2 f2.Show() Else f2.Show() f2.Activate() End If End Sub
Edit:Heyy,there was someone who posted here before me...It dissapeared after I posted my message.That was a cool magic.Maybe they deleted it.





Reply With Quote