AutoCorrect

Visual Basic 2005 adds an AutoCorrect feature, making it simple for you to determine why invalid code won't compile. Then you can choose from multiple options in order to fix the errant code. If you make a simple typing error, clicking the Smart Task produces a list of suggestions from which you can select the correct code. If you attempt to use a class, but neglect to import its namespace or provide the full class name, the AutoCorrect Smart Task offers suggestions. Here's an example, illustrated below. Suppose you've created a read/write property and then decide to make it read-only. You add the ReadOnly keyword, but now you see a blue "squiggle" indicating that something's wrong with the Set block. Expanding the Smart Task displayed near the error displays a dialog box where you can select either of two remedies, and then click the associated link to make the change. It's fixed.

AutoCorrect shows you the problem.

 

AutoCorrect offers you ways to fix the problem.