Home
|
Tutorial
|
Articles
|
Forum
|
Interview Question
|
Code Snippets
|
News
|
Fun Zone
|
Poll
|
Web Links
|
Certification
|
Search
Welcome :
Guest
Sign In
Register
Win Surprise Gifts!!!
Congratulations!!!
Top 5 Contributors of the Month
ffttt
Home
>>
Forum
>>
C#
>>
Post New Question
Subscribe to Forum
How to close my C# + Windows application safely...
Posted By:
susant
Posted Date:
December 26, 2008
Points:
2
Category :
C#
Hi All
In Exit Menu i am writting code like..
-----------------------------------------
private void ExitToolsStripMenuItem_Click(object sender, EventArgs e)
{
Application.Exit();
close_childForm();
}
public void close_childForm()
{
foreach (Form childForm in MdiChildren)
{
childForm.Close();
}
}
so when the user click File->Exit it will safely close the application... but that NoticyIcon is not cleared from task bar..
Requirement
-----------------
1: how to cler that notify Icon from task bar when the user click file->Exit
2nd problem
---------------
But when the user click 'X'(MinimizeBox,MaximaizeBox,Close) Close Button of MDI some instance remain... as well as NoticyIcon is not cleared from task bar..
so how to close my application safely....
susant
Bombay
Responses
Author:
Praveen
Posted Date: December 26, 2008 Points: 5
Hi,
You can track the "FormClosing" event on the parent form there you can write the code to close all the form safely.
Post Reply
You must
Sign In
To post reply
Related Questions Related Questions
Close others forms in windows application
How to create a control in windows application also how could add in the Tool box itself
Windows application Form Focus in C#.NET
Difference Between console application and windows application?
upload image file in windows application
Can we use Web form controls in window form of Windows application
How to call Calculator Control in C# Windows Application..
Paging in DataGridView in windows application
How to open one .chm help file in c# windows application menu bar....
How to lock the database programetically using c# + windows application
Latest Forum Questions From The Same Category
To Achieve draw wave form from speaker outputs.
How to display the text in the second ck editor with strikes while extracting from database
Mail is working but I want send two excel file to each different person
how to display child nodes with headers and keeping the child nodes in a table
In DataGrid I have Two Dropdownlist, One in Header template and Item Template
Display data directly from database table to PDF using stored procedures in asp.net C#
How to install and use Dev Express ?
Dialogbox Custom Control
Custom Control in Winforms
I just started learning c#.net console application
Find more Forum Questions on C#, ASP.Net, Vb.Net, SQL Server and more
Here
Quick Links For Forum Categories:
ASP.Net
Windows Application
.NET Framework
C#
VB.Net
ADO.Net
Sql Server
SharePoint
OOPs
Silverlight
IIS
JQuery
JavaScript/VBScript
Biztalk
WPF
Patten/Practices
WCF
Others
www.DotNetSpark.com
UnAnswered
All
Hall of Fame
Twitter
Terms of Service
Privacy Policy
Contact Us
Archives
Tell A Friend