Q&A
| Q1: | When I upgrade my Visual Basic 6 application to Visual Basic .NET, can I still use my On Error Goto error-handling routines? |
A1: | 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. |
| Q2: | 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? |
A2: | 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 runseven 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. |
| Q3: | 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? |
A3: | 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. |
• Table of Contents
• Index
Sams Teach Yourself Visual Studio® .NET 2003 in 21 Days
By
Jason Beres
Publisher
: Sams Publishing
Pub Date
: January 14, 2003
ISBN
: 0-672-32421-0
Pages
: 696
Sams Teach Yourself Visual Studio .NET in 21 Days will help developers that are new to application development and experienced developers understand how to use the .NET Framework and Visual Studio .NET to rapidly develop any type of computer application. The Visual Studio .NET development environment is the most comprehensive developer tool ever created, putting that together with the .NET Frameworks' Class Libraries, the developer has everything he or she needs to get up-to-speed on Microsoft's latest revolution in application development. This book will guide the developer through using the VS .NET IDE, the Visual Basic .NET and C# language, and the supporting tools available from Microsoft to create Windows and Web-based applications. The market is full of books that pretty much say the same thing, which is already available in the help files, the author of this book has written and deployed over a dozen successful applications using Visual Studio .NET and the .NET Framework. All of his expertise and experience is used to give you the most comprehensive title on using Visual Studio .NET.