A Try/Catch block is a code block that is used to handle runtime errors. Code that is expected to raise an exception is written inside the Try statement. The Catch statement catches the exception raised during a program execution and throws the specific exception. For example,
System.EventArgs) Handles MyButton1.Click
Try
Process.Start(”http://www.ucertify.com”)
Catch ex As Exception
MsgBox(”Sorry, cannot load the uCertify Home Web page”)
End Try
End Sub
- Download free practice test for mcp MCP exam.
- Become Microsoft Microsoft .NET Analyzing Req. certified.
- Pass Microsoft 70-305 - Web Based Applications with VB.NET
- Click here to download 70-306 test study guide and practice question.
- Click here to download 70-310 test study guide and practice question.
- Best exam simulation Microsoft 70-536-VB download free trial.
- Pass Microsoft 70-551-VB - UPGRADE: MCAD Skills to MCPD Web Developer VB.NET
- Click here to get free 70-552-VB UPGRADE: MCAD Skills to MCPD Windows Developer VB.NET exam practice questions.
- Best exam simulation Microsoft 70-561-VB download free trial.
- Click here to get free CX310-056 SCJP 5.0 Java Upgrade exam practice questions.
If you like this article, please leave a comment or subscribe this blog via RSS or via e-mail, Bookmark and share through your network. Click the AddThis button below. Thanks.