Code, Debug, and Continue Without Restarting Your Application
Visual Basic 6 developers are accustomed to making changes on the fly, tweaking statements, refining logic, and even inserting entirely new blocks of code while they work. But the introduction of a new compile-time architecture with the .NET 1.0 common language runtime (CLR) caused this feature to disappear from Visual Studio .NET 2002 and 2003. Fortunately, it's returned in Visual Basic 2005, with a few enhancements and one major caveat—it won't work with ASP.NET.
Note
The single most requested feature from VB 6 returns to . NET: a debugger that lets you edit code without restarting your application.
How do I do that?
To see edit-and-debugging at its simplest, it's worth looking at
an example where a problem sidelines your code—and how you can quickly
recover. Figure 1-3 shows a
financial calculator application that can calculate how long it will
take you to become a millionaire, using Visual Basic's handy Pmt( ) function.

Figure 1-3. A simple form for a financial calculation
To create this program, first add four text boxes (the labels
are optional), and then name them txtInterestRate, txtYears, txtFutureValue, and txtMonthlyPayment (from top to bottom).
Then, add a button with the following event handler:
Private Sub btnCalculate_Click(ByVal sender As System.Object, _ ByVal e As System.EventArgs) Handles btnCalculate.Click ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access