Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

Form.close()

Posted on 2004-10-28
1
Medium Priority
?
179 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
Comment
Question by:f_asmaa
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
1 Comment
 
LVL 2

Accepted Solution

by:
ChillAmmar earned 375 total points
ID: 12431970
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

Featured Post

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

The ECB site provides FX rates for major currencies since its inception in 1999 in the form of an XML feed. The files have the following format (reducted for brevity) (CODE) There are three files available HERE (http://www.ecb.europa.eu/stats/exch…
Calculating holidays and working days is a function that is often needed yet it is not one found within the Framework. This article presents one approach to building a working-day calculator for use in .NET.
In this video, Percona Director of Solution Engineering Jon Tobin discusses the function and features of Percona Server for MongoDB. How Percona can help Percona can help you determine if Percona Server for MongoDB is the right solution for …
In this video, Percona Solutions Engineer Barrett Chambers discusses some of the basic syntax differences between MySQL and MongoDB. To learn more check out our webinar on MongoDB administration for MySQL DBA: https://www.percona.com/resources/we…
Suggested Courses

618 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