0 Members and 1 Guest are viewing this topic.
Oh, and as another point, you're using a MessageBox in the inner "catch" statement. That's OK, but it forces the user to hit OK to continue. Imagine what would happen if the user selected 100 files, and they all start erroring out - the user might have to hit "OK" 100 times before the routine finally exits.
I recommend using it with wanton abandon
static void Main(string[] args) { int i = 0; loop_begin: if (i == 10) goto exit; Console.WriteLine(i++); goto loop_begin; exit: Console.ReadKey(); }