Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
-C#- Error Handling
#1
If we want to make our program more powerful and stylish, we need to stop it from crashing on Overflows & Errors, so we use this code to prevent it from crashing, & instead reporting the Error or the cause..

We use these two Methods like this:

Code:
try
   {
      //What you want...
   }
catch (Exception ex)
       {
            Messagebox.show (ex.message);
       }
[Image: bxj6gaq99c9hyvinfkvn.jpg]
[Image: w0l5y0.png]

Messages In This Thread
-C#- Error Handling - by MindHACKer - Nov 21 2011, 01:15 PM
RE: -C#- Error Handling - by M. Bison - Nov 21 2011, 10:34 PM
RE: -C#- Error Handling - by MindHACKer - Nov 22 2011, 05:31 AM
RE: -C#- Error Handling - by Helices - Nov 29 2011, 05:43 AM
RE: -C#- Error Handling - by Leaky - Nov 30 2011, 05:04 PM

Users browsing this thread: 1 Guest(s)