Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
CODE PROJECT For Those Who Code
  • Home
  • Articles
  • FAQ
Community
  1. Home
  2. General Programming
  3. Visual Basic
  4. me.Close() vs me.Dispose()

me.Close() vs me.Dispose()

Scheduled Pinned Locked Moved Visual Basic
visual-studioperformancequestion
3 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • O Offline
    O Offline
    Oneiroid
    wrote on last edited by
    #1

    When is it appropriate to use one over ther other when closing/cancelling a form? Advantages, disadvantages, memory leaks?

    M 1 Reply Last reply
    0
    • O Oneiroid

      When is it appropriate to use one over ther other when closing/cancelling a form? Advantages, disadvantages, memory leaks?

      M Offline
      M Offline
      mAreValo
      wrote on last edited by
      #2

      If Dispose is implemented, you should use Dispose after calling Close. But since not everyone follows the intended design, you should read about the implementation if you are using third party Classes

      O 1 Reply Last reply
      0
      • M mAreValo

        If Dispose is implemented, you should use Dispose after calling Close. But since not everyone follows the intended design, you should read about the implementation if you are using third party Classes

        O Offline
        O Offline
        Oneiroid
        wrote on last edited by
        #3

        Alright, thank you!

        1 Reply Last reply
        0
        Reply
        • Reply as topic
        Log in to reply
        • Oldest to Newest
        • Newest to Oldest
        • Most Votes


        • Login

        • Don't have an account? Register

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • World
        • Users
        • Groups