Sams Teach Yourself .Net in 21 Days
- Table of Contents
- Copyright
- About the Author
- About the Technical Editor
- Acknowledgments
- We Want to Hear from You
- Introduction
- Week 1: At a Glance
- Day 1. Introduction to the Microsoft .NET Framework
- Day 2. Introduction to Visual Studio .NET
- Day 3. Writing Windows Forms Applications
- Day 4. Deploying Windows Forms Applications
- Day 5. Writing ASP.NET Applications
- Day 6. Deploying ASP.NET Applications
- Day 7. Exceptions, Debugging, and Tracing
- Week 1. In Review
- Week 2: At a Glance
- Day 8. Core Language Concepts in Visual Basic .NET and C#
- Day 9. Using Namespaces in .NET
- Day 10. Accessing Data with ADO.NET
- Day 11. Understanding Visual Database Tools
- Day 12. Accessing XML in .NET
- Day 13. XML Web Services in .NET
- Day 14. Components and .NET
- Week 2. In Review
- Week 3: At a Glance
- Day 15. Writing International Applications
- Day 16. Using Macros in Visual Studio .NET
- Day 17. Automating Visual Studio .NET
- Day 18. Using Crystal Reports
- Day 19. Understanding Microsoft Application Center Test
- Day 20. Using Visual SourceSafe
- Day 21. Object Role Modeling with Visio
- Week 3. In Review
Q&A
-
When I upgrade my Visual Basic 6 application to Visual Basic .NET, can I still use my On Error Goto error-handling routines?
Yes, you can. However, they're provided for backward compatibility only, so you should consider rewriting your error-handling routines to the new structured exception handling in .NET.
-
I'm used to Visual Basic 6 debugging, and I like to change my code while I am in debug mode. Why does .NET make me restart every time I do that now?
Visual Basic .NET is a compiled language, not interpreted. That means in order for your code to run, the intermediate language must be compiled before it runs—even when you're debugging. So, if you make a change to your code, you must restart the application to re-create the intermediate language code.
-
Exceptions are cool. I like the fact that I help out the user by letting him know what happened. Is there a way I can create my own custom exceptions?
Yes. If you're writing classes and you want to create custom errors that are raised back to the user, you can inherit from the Exception class.
Quiz | Next Section

Account Sign In
View your cart