awesome, that's exactly what I was looking for!

Thanks a million PT Exorcist! I've been going crazy looking for that Enviroment.Exit thing.

Here's a few questions:

In vb a sub can't return a value, so how can I have Sub Main return an int? Do I need to have it be a function?

Is Environment.Exit a good way to terminate an application? Does it function similar to End Sub (in Main) except that it returns a value?

Thanks,

Jacob438