Results 1 to 9 of 9

Thread: [RESOLVED] Opening a new form

Threaded View

  1. #2
    Fanatic Member uniquegodwin's Avatar
    Join Date
    Jul 2005
    Location
    Chennai,India
    Posts
    694

    Re: Opening a new form

    Hi Fyre..
    here is the way to check whether the form is closed or hidden and perform the action according to it
    VB Code:
    1. Dim f2 As New Form2
    2.     Private Sub Button1_Click_1(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
    3.         If f2.IsDisposed = True Then
    4.             f2 = New Form2
    5.             f2.Show()
    6.         Else
    7.             f2.Show()
    8.             f2.Activate()
    9.         End If
    10.     End Sub
    Hope it helps

    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.
    Last edited by uniquegodwin; Sep 14th, 2005 at 01:36 AM.
    Godwin

    Help someone else with what someone helped you!

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width