Post: Help Me
09-24-2015, 03:01 PM #1
(adsbygoogle = window.adsbygoogle || []).push({}); So I Get A Error When I Close My Application
You must login or register to view this content.
Pls Help
09-24-2015, 03:16 PM #2
So This Worked But Is it Going To Efect My Tool?? Im New To Coding

You must login or register to view this content.
09-24-2015, 04:44 PM #3
Mango_Knife
In my man cave
Originally posted by VadRe View Post
So This Worked But Is it Going To Efect My Tool?? Im New To Coding

You must login or register to view this content.


Maybe you closing with the "Dispose" method?
If so, close it with the "Close" method.
09-24-2015, 05:01 PM #4
Originally posted by Knife View Post
Maybe you closing with the "Dispose" method?
If so, close it with the "Close" method.


i have multiple forms so i use Application.Exit();, Close(); Gives me the same eror
09-24-2015, 08:08 PM #5
jagex
Gym leader
Post your program code.
09-24-2015, 08:19 PM #6
Default Avatar
Oneup
Guest
Originally posted by VadRe View Post
i have multiple forms so i use Application.Exit();, Close(); Gives me the same eror

It should be this.Close(); If you are doing it for individual forms.
09-25-2015, 02:01 AM #7
Winter
Purple God
Originally posted by VadRe View Post
So I Get A Error When I Close My Application
You must login or register to view this content.
Pls Help


What's going on here is he's closing his application but because he's got Application.Exit running on multiple forms it's overflowing the buffer with exit requests. So the solution to your issue is like this; on your main form that you'll be doing your actions on, in the onclosed event put Application.Exit, then there's no need to do this.Close() unless you want to forcibly close it because now your new mainform will close the application when it's closed.

The following user thanked Winter for this useful post:

DaenerysTargy
10-23-2015, 04:29 AM #8
Originally posted by VadRe View Post
So I Get A Error When I Close My Application
You must login or register to view this content.
Pls Help


Question answered unless you need more help to which I will open this again.

Copyright © 2024, NextGenUpdate.
All Rights Reserved.

Gray NextGenUpdate Logo