The Syncfusion native Blazor components library offers 70+ UI and Data Viz web controls that are responsive and lightweight for building modern web apps.
.NET PDF framework is a high-performance and comprehensive library used to create, read, merge, split, secure, edit, view, and review PDF files in C#/VB.NET.
Your post about Setting a Form to Be Invisible at Its Inception was very helpful to me although it lacked the answer to that question.
I have a program that can only be closed using the notify icon in the taskbar. The closed event is cancelled.
I need to use application.exit() there but only when windows is trying to close the app to restart the computer.
RPRamesh Praveen Syncfusion Team May 13, 2003 12:39 PM UTC
Maybe the Application.ApplicationExit will get called before your Closing event?
-Praveen
ADAdministrator Syncfusion Team May 30, 2003 01:07 PM UTC
This is what I had to do:
public static void ShuttingDown()
{
StackTrace Trace = new StackTrace(true);
if(Trace.FrameCount > 13)
{
if(Trace.GetFrame(14).GetMethod().Name=="WmSysCommand")
{
e.Cancel=true;
this.Visible=false;
}
}
}