Solved

Form.close()

Posted on 2004-10-28
175 Views
Last Modified: 2010-04-23
In VB.NET: Does close() method of the form completely release every allocated resources for that form. In VB6 I have to set the form to nothing after unloading it to completely remove allocated resources. What about VB.NET?

Please verify your answer
0
Question by:f_asmaa
    1 Comment
     
    LVL 2

    Accepted Solution

    by:
    Yes, in VB.NET the Close() method automatically deloactes the ersources used by the form, this job is done by the Garbage Collector.
    For eg.
    If you have a SQL conncetion which is being open on the form load().
    and when the form.Close() method is called the SQL conncetion is automatically closed. which is not the case with VB 6.0 or earlier wher you manually had to close the opened SQL conncetion otherwise the conncetion left open until it gets timed out.
    0

    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    How your wiki can always stay up-to-date

    Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
    - Increase transparency
    - Onboard new hires faster
    - Access from mobile/offline

    Article by: Kraeven
    Introduction Remote Share is a simple remote sharing tool, enabling you to see, add and remove remote or local shares. The application is written in VB.NET targeting the .NET framework 2.0. The source code and the compiled programs have been in…
    Since .Net 2.0, Visual Basic has made it easy to create a splash screen and set it via the "Splash Screen" drop down in the Project Properties.  A splash screen set in this manner is automatically created, displayed and closed by the framework itsel…
    With the advent of Windows 10, Microsoft is pushing a Get Windows 10 icon into the notification area (system tray) of qualifying computers. There are many reasons for wanting to remove this icon. This two-part Experts Exchange video Micro Tutorial s…
    To add imagery to an HTML email signature, you have two options available to you. You can either add a logo/image by embedding it directly into the signature or hosting it externally and linking to it. The vast majority of email clients display l…

    913 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    14 Experts available now in Live!

    Get 1:1 Help Now