Results 1 to 4 of 4

Thread: How to know if a form has been disposed?

  1. #1

    Thread Starter
    New Member
    Join Date
    Jan 2002
    Location
    Bandung - Indonesia
    Posts
    14

    How to know if a form has been disposed?

    Well, is there a code to check whether a form has been disposed or not ?

    THX
    K I
    is in the house

    Mail me
    ==========================
    "Finally VB is getting closer to Java haha"

  2. #2
    old fart Frans C's Avatar
    Join Date
    Oct 1999
    Location
    the Netherlands
    Posts
    2,926
    When the form is disposed, the IsDisposed property will be True.

  3. #3

    Thread Starter
    New Member
    Join Date
    Jan 2002
    Location
    Bandung - Indonesia
    Posts
    14
    If a form has been disposed, how can I rebuild it again?
    K I
    is in the house

    Mail me
    ==========================
    "Finally VB is getting closer to Java haha"

  4. #4
    old fart Frans C's Avatar
    Join Date
    Oct 1999
    Location
    the Netherlands
    Posts
    2,926
    Just like opening a new form.

    VB Code:
    1. If f Is Nothing OrElse f.IsDisposed Then
    2.     f = New form1
    3. End If
    4. f.Show

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