List Info

Thread: Re: VB.Net Form will not close




Re: VB.Net Form will not close
country flaguser name
United States
2007-06-05 21:36:42

I placed me.dispose in the form's closing event, and everything seems
okay now. Thanks
--- In helpwithvb%40yahoogroups.com">helpwithvbyahoogroups.com, "Timothy Rupp" <tim.rupp...>
wrote:
>
&gt; I'm guessing that you've got an open connection to the database
that hasn't
&gt; been closed and is holding your application open. Make sure that
your
> datasources are closed when you want to exit your program.
>
>
>
> /tr
>
>
>
>
>
>
>
>
>
> _____
>
> From: helpwithvb%40yahoogroups.com">helpwithvbyahoogroups.com
[mailto: helpwithvb%40yahoogroups.com">helpwithvbyahoogroups.com] On
> Behalf Of allan_blackford
>; Sent: Saturday, June 02, 2007 8:00 PM
> To: helpwithvb%40yahoogroups.com">helpwithvbyahoogroups.com
&gt; Subject: [helpwithvb] VB.Net Form will not close
&gt;
>
>
> I'm working with VB.Net via VS2005. I'm taking a class and we're
going
> over database connectivity. We are to do a simple application of
> connectiong to a database, and display publisher information. The
> publisher ID is to be in a combo box, and the rest in text boxes.
I've
> followed the line by line instructions and everything works fine.
I've
> made the connection, used the datasources window to drag and drop
the
> controls to the form, and deleted the nav. bar. The catch is now
the
> form will not close. I've coded me.close in a button and that will
not
> work. Clicking the "x&quot; will not work. In the button I added
a 'Hello
> World' message box just to make sure the code was firing, and the
box
> showed. If I step through the code, it appears to be fine, there
are
> not build errors etc. Any ideas????
>
> Thanks.
>

__._,_.___
.

__,_._,___
RE: Re: VB.Net Form will not close
country flaguser name
United States
2007-06-06 10:20:00

This would work because Form.Dispose() releases all of the resources being used by the form.

 

I’m guessing that the Form was the start-up object and you didn’;t have a SubMain or other assembly within the project.

 

As you move on with larger projects, remember to properly dispose of other objects in the project as you have completed using them, lest things like this issue revisit you!

 

/tr

 

 

 

 

 


From: helpwithvbyahoogroups.com [mailto:helpwithvbyahoogroups.com] On Behalf Of allan_blackford
Sent: Tuesday, June 05, 2007 10:37 PM
To: helpwithvbyahoogroups.com
Subject: [helpwithvb] Re: VB.Net Form will not close

 

I placed me.dispose in the form's closing event, and everything seems
okay now. Thanks
--- In helpwithvb%40yahoogroups.com">helpwithvbyahoogroups.com, &quot;Timothy Rupp" <tim.rupp...>
wrote:
>
&gt; I'm guessing that you've got an open connection to the database
that hasn't
&gt; been closed and is holding your application open. Make sure that
your
> datasources are closed when you want to exit your program.
>
>
>
> /tr
>
>
>
>
>
>
>
>
>
> _____
>
> From: helpwithvb%40yahoogroups.com">helpwithvbyahoogroups.com
[mailto: helpwithvb%40yahoogroups.com">helpwithvbyahoogroups.com] On
> Behalf Of allan_blackford
>; Sent: Saturday, June 02, 2007 8:00 PM
> To: helpwithvb%40yahoogroups.com">helpwithvbyahoogroups.com
&gt; Subject: [helpwithvb] VB.Net Form will not close
&gt;
>
>
> I'm working with VB.Net via VS2005. I'm taking a class and we're
going
> over database connectivity. We are to do a simple application of
> connectiong to a database, and display publisher information. The
> publisher ID is to be in a combo box, and the rest in text boxes.
I've
> followed the line by line instructions and everything works fine.
I've
> made the connection, used the datasources window to drag and drop
the
> controls to the form, and deleted the nav. bar. The catch is now
the
> form will not close. I've coded me.close in a button and that will
not
> work. Clicking the "x&quot; will not work. In the button I added
a 'Hello
> World' message box just to make sure the code was firing, and the
box
> showed. If I step through the code, it appears to be fine, there
are
> not build errors etc. Any ideas????
>
> Thanks.
>

__._,_.___
.

__,_._,___
[1-2]

about | contact  Other archives ( Real Estate discussion Medical topics )