VB.NET Tutorial 38 – Try Catch (Visual Basic 2008/2010)

In this tutorial, I cover dealing with unhandled exceptions or errors in your application. Instead of the application crashing, you can add a simple Try Catch to deal with any unhandled exceptions. I use a simple application that will start a process here. For more information, check out the website: howtostartprogramming.com
Video Rating: 4 / 5

This entry was posted in Learn Html Basics and tagged , , , , , . Bookmark the permalink.

21 Responses to VB.NET Tutorial 38 – Try Catch (Visual Basic 2008/2010)

  1. Abhijeet Viswa says:

    On Error? GoTO [label]

  2. SUPERAPSTUDENT says:

    Full Advanced Inventory Management Source Code
    Visit: inventoryinvbdotnet.blogspot.in ?

  3. TheBehappy0 says:

    Do you have to use ex to declare and exception or could ex be anything as long as it’s? followed by as exception? No , you can use any letter ,considered that you are declare as string Or integer .

  4. TheBehappy0 says:

    Thanks again.I? solved the problem.

  5. TheBehappy0 says:

    And the Voice is? very clear

  6. TheBehappy0 says:

    First i really wanna thank u for this perfect tutorial. How? can i change the body of the messagebox ?. I am grateful to you.your tutorial is the best.

  7. NekoChanMaasta says:

    You got the numbering wrong, the video says 37.
    Apart from that it was a good tutorial.
    Do you have to use ex to declare and exception or could ex be anything as long as it’s followed by as exception?
    Also can you put? something other than exception?

  8. ahmed jano says:

    You’re? ROCKS

  9. mrbloodspewer says:

    In the? video introduction when you show the title of the tutorial you used the same title as tutorial 37.

  10. marz3335 says:

    Dude, you need a pop filter on that mic ! Too bad you’ve already? done the audio — great job but the audio is unbearable.

  11. Ramsey Ali says:

    Hi! Could? you guys please check out my channel? I will do a giveaway when I reach 100 subscribers! Thanks!

  12. Mrkermlerm says:

    Can u explain me? this statment?

    Dim sc As New MSScriptcontrol.scriptcontrol

    sc.Language = “vbscript”

    Dim F As String

    Try

    F = txtNum.Text

    Dim result As Double = Convert.ToDouble(sc.Eval(F))

    MessageBox.Show(“Result: ” & F & ” = ” & result.ToString)

    txtResult.Text = F & “=” & result.ToString

    Catch ex As Exception

    MsgBox(“Invalid Calculator”)

    End Try

  13. miken1299 says:

    go to? to tools up at the top and click on it and it says build (whatever the name of your project is) and then click on that

  14. Daygemente says:

    read a book and? not youtube

  15. 1111kalo says:

    thanks thanks
    very? much

  16. cassiusw90s says:

    awesome tutorial series…thanks!
    ?

  17. rapidMG says:

    i dont have build on my vb!? i got 2010 express version! any1? know? any1 wanna help? ;D

  18. Dalkiel Damion says:

    Sweet,? this is something my instructor said we need to add into our programs but didn’t tell us who to do it. He said we can figure it out on our own or google it. Well thank you VB.NET Tutorial’s.

  19. Shay Axelrod says:

    Try
    ‘(your? actions)
    Catch ex As Exception
    ‘This is where you tell them about the error
    MsgBox(“Error has occured!”)
    End Try

  20. TheCowWhoClutchd says:

    How do u Display a message for ex:?
    When i click a button i wanna change the text of a label to show that it is waiting for a response from the server before it uses try, but it doesnt change the label till after it tries If u PM me ill pm u the code

  21. DrKillaser says:

    then message of crash makes me feel like the whole? windows crashed.. lol…. the second one is much more “relaxing”…

Leave a Reply

Your email address will not be published. Required fields are marked *

*

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>