Hi everyone.
I've written a program that uses data from an external file. On startup, it checks if the file is there, and is supposed to exit if it isn't.
I tried using both Application.Exit() and System.Windows.Forms.Application.Exit() but for some reason the code keeps executing and I get a NullReference exception (the code loads the data into arrays if it is present).
Now if I used the End command, it exits fine. I was taught never to use things like break, end, etc outside of case statements. Is there any reason why? Is there any easy way of solving my problem? I know I could probably stick the whole program inside a while loop & put in a terminating condition to exit, but I'd rather not resort to this if there's an easier way.
Thanks,
dabossss
