I have created a Winforms application in C#, where I have provided Exit button. And on the click of that button I execute custom function, where I have written
Application.Exit();
But it's showing error:
I have created a Winforms application in C#, where I have provided Exit button. And on the click of that button I execute custom function, where I have written
Application.Exit();
But it's showing error: