(I'm using VS 2003 with Framework 1.1.) I'll bet this is about as simple a question as it gets, but for the life of me I cannot find the equivalent C# statement to the simple VB.NET statment:
All I want to do is end the application. If, say for instance, validation fails, I want the application to write an event to the event log and END THE APPLICATION - stop execution right there. I have only a few reference books for C# and the Visual Studio help files. I cannot find the answer to this simple question. I found a couple of possibilities:
1) Application.Exit();
2) this.Dispose();
For some reason, neither one of these works. I'm probably not using them correctly.
Thanks in advance for any help.
Tracey
Code:
End
All I want to do is end the application. If, say for instance, validation fails, I want the application to write an event to the event log and END THE APPLICATION - stop execution right there. I have only a few reference books for C# and the Visual Studio help files. I cannot find the answer to this simple question. I found a couple of possibilities:
1) Application.Exit();
2) this.Dispose();
For some reason, neither one of these works. I'm probably not using them correctly.
Thanks in advance for any help.
Tracey