how to make form disapper not close ( like msn messenger )
Hi there. i am new to C# programming. I am developing an updater that would update our product. I want to program the close button so if clicked the application should not close but rather hide. I have a notification icon from where the user can call it back. I want it just like in msn messenger.
Umair PPosted Aug 8, 2008, 9:46 AM
if (e.CloseReason != CloseReason.ApplicationExitCall)
{
e.Cancel = true;
this.Hide();
}
and in the context menu where the acctual exit command is we should write Application.Exit(); and walah
Umair PPosted Aug 8, 2008, 9:13 AM
But where to put this.hide(); ?
Ryan AlfordPosted Aug 8, 2008, 8:48 AM