473,396 Members | 2,030 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

Closing/ending a windows app.

I have a windows app with a file menu on it. When the person picks
file->exit, I want to close the application. I have in the menu click event
Application.Exit() but it seems to leave the process lying around.

How do I close an application from a window so the entire process gets
closed down?

TIA - Jeff.
Aug 13 '08 #1
2 973
On Aug 13, 7:07 pm, "Mufasa" <j...@nowhere.comwrote:
I have a windows app with a file menu on it. When the person picks
file->exit, I want to close the application. I have in the menu click event
Application.Exit() but it seems to leave the process lying around.

How do I close an application from a window so the entire process gets
closed down?

TIA - Jeff.
Locate main window; if you're closing entire application from other
form using multiple forms, eg: from Form2,
you can call "Form1.Close" or if you're using just a single form
(Form1) you can call "Me.Close" rather
than using "application.exit" if it helps.

Hope this helps,

Onur Güzel
Aug 13 '08 #2
Form1.Dispose(true)

"kimiraikkonen" <ki*************@gmail.comwrote in message
news:ab**********************************@r66g2000 hsg.googlegroups.com...
On Aug 13, 7:07 pm, "Mufasa" <j...@nowhere.comwrote:
>I have a windows app with a file menu on it. When the person picks
file->exit, I want to close the application. I have in the menu click
event
Application.Exit() but it seems to leave the process lying around.

How do I close an application from a window so the entire process gets
closed down?

TIA - Jeff.

Locate main window; if you're closing entire application from other
form using multiple forms, eg: from Form2,
you can call "Form1.Close" or if you're using just a single form
(Form1) you can call "Me.Close" rather
than using "application.exit" if it helps.

Hope this helps,

Onur Güzel
Aug 14 '08 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

5
by: Ron L | last post by:
I have an MDI application with a number of child windows. In each child window I am catching the Closing event and having the child window decide if it should set cancel to true. The intent here...
6
by: Tor Heigre | last post by:
Hello While testing our code on DB2 we have encountered a difference in the behaviour of DB2Driver (com.ibm.db2.jcc.DB2Driver with driverType= 4) compared to the drivers offered by Oracle 9i and...
6
by: Al the programmer | last post by:
I want to catch the Closing event for my form. I created a test windows app using the wizard. I then create the Closing event by clicking the lightning bolt on the properties pane. The code is...
5
by: Russell | last post by:
Hi all, I have a web page(a) that has a link to another web page(b). Now, on the page load event of web page(b), I am doing the following: Response.redirect("./test.pdf") This pdf, if the...
2
by: Nathan Sokalski | last post by:
I have a section in my ASP.NET code where I have an HTML unordered list. Visual Studio keeps removing the closing list item tags, except for the last list item. In other words, Visual Studio makes...
27
by: cj | last post by:
I run this program and to exit click the X in the upper right corner. But apparently it isn't really ending the program. If I return to VB and make changes then try to rebuild the app it says the...
6
by: Amit | last post by:
Hello Everyone, This is the code I am using.. <xsl:variable name="var_Temp"> <xsl:value-of select="../ParentNode/ChildNode/Node"/> </xsl:variable> <xsl:element name="MyNode">...
8
by: Wayne | last post by:
I have had a problem for some time with several databases and figure there must be a common underlying cause. Sometimes when I open a database, nothing appears to happen, but an .ldb file gets...
4
Fr33dan
by: Fr33dan | last post by:
Hi, I'm having trouble with a multi-threaded program crashing on a specific machine when the worker thread is not initialized at when the _FormClosing method of my main form called. Here is my...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.