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

preview_player
Показать описание
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:
Рекомендации по теме
Комментарии
Автор

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.

DalkielDamion
Автор

Thanks. I wasn't really using a Windows Form but still great.

TheVerbalAxiom
Автор

thank you so much. As i am new in programming those small problem gets me headache.

abhishekpratihar
Автор

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

mrbloodspewer
Автор

So then how would you tell the user that there was an error?

TeachMeComputer
Автор

i finally found a tutorial thanks bro!

rashad
Автор

@rapidMG 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

miken
Автор

Thanks...nice one... really good tutorial...

LosTecH
Автор

Something is wrong, i have VB 2010 and after converting my project i debugged it but the "TRY CATCH" statment does not catch anything. Can you please confirm this?

tiagocanha
Автор

We can't rename the catch ex to(error) i won't work

ivandrofly
Автор

thanks bro i like your tuto
but please may you explain TCP listener and TCP client

samirwolf
Автор

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

ShayAxelod
Автор

@swehunter2000 No real programmer would ever use on error R. it's shocking abuse of bad programming.


And this is not how you should use Try/Catch#

Urgh

Irishsam