Results 1 to 3 of 3

Thread: i am an idiot

  1. #1

    Thread Starter
    Fanatic Member siyan's Avatar
    Join Date
    Jul 2001
    Location
    GOOOAAAAALLLLL!!!!!
    Posts
    869

    i am an idiot

    ooookay..so maybe i'm slow, but how do i check if a class was or wasn't disposed of?

    i declare form instances in a module, then call myform.show. the myform.dispose(true) when i get rid of it, but then if i try myform.show again it dies...

    or, does someone have a REALLY simple way of loading/unloading forms ala VB6 without all this hassel? it was so easy back then....

    -C
    Unite, proletariat!

  2. #2
    Tygur
    Guest
    If you want to show myform after Disposing it, just do this first:
    myform = New myformclassname()

    Also, you can find out whether your form was already disposed by using IsDisposed:
    Code:
    If myform.IsDisposed Then
        'The form was disposed already
    Else
        'The form wasn't already disposed
    End If

  3. #3

    Thread Starter
    Fanatic Member siyan's Avatar
    Join Date
    Jul 2001
    Location
    GOOOAAAAALLLLL!!!!!
    Posts
    869
    sweet thanks...i'm still getting used to this stuff. heeh

    why did they have to remove the simple load and unload thing??!?!?!?!

    -C
    Unite, proletariat!

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