Results 1 to 6 of 6

Thread: best way to open and close form

  1. #1

    Thread Starter
    Hyperactive Member
    Join Date
    Aug 2002
    Posts
    352

    best way to open and close form

    What's the best and most efficient way to open and close a form?

    Right now i use the form.visible property to open and close a form and then the form.dispose and application.exit methods to close the apps.

    What would you recommend using for closing (and releasing a form from memory) and opening a form.

  2. #2
    l33t! MrPolite's Avatar
    Join Date
    Sep 2001
    Posts
    4,428
    umm how about form.show and form.hide? dunno if it makes a big difference
    application.exit will close all the forms, I THINK. I usually use form.close if I dont wanna end my program
    rate my posts if they help ya!
    Extract thumbnail without reading the whole image file: (C# - VB)
    Apply texture to bitmaps: (C# - VB)
    Extended console library: (VB)
    Save JPEG with a certain quality (image compression): (C# - VB )
    VB.NET to C# conversion tips!!

  3. #3

    Thread Starter
    Hyperactive Member
    Join Date
    Aug 2002
    Posts
    352
    The problem with form.close is that when i try to open the form again, it gives me an error.

  4. #4
    l33t! MrPolite's Avatar
    Join Date
    Sep 2001
    Posts
    4,428
    Originally posted by MXAlPhA
    The problem with form.close is that when i try to open the form again, it gives me an error.
    well I said you should use it when you wanna get rid of it. You can use frm.Hide if you dont want it to be unloaded
    rate my posts if they help ya!
    Extract thumbnail without reading the whole image file: (C# - VB)
    Apply texture to bitmaps: (C# - VB)
    Extended console library: (VB)
    Save JPEG with a certain quality (image compression): (C# - VB )
    VB.NET to C# conversion tips!!

  5. #5

    Thread Starter
    Hyperactive Member
    Join Date
    Aug 2002
    Posts
    352
    what about releasing the form/application from memory? Does vb.net automatically do that for the most part?

  6. #6

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