15.02.2015 Views

C# 4 and .NET 4

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

388 ❘ ChaPTer 16 visuAl studiO 2010<br />

figure 16-16<br />

In addition to the folding editor feature, Visual Studio ’ s code editor brings across all the familiar<br />

functionality from Visual Studio 6. In particular, it features IntelliSense, which not only saves you typing<br />

but also ensures that you use the correct parameters. C++ developers will notice that the Visual Studio<br />

IntelliSense feature is a bit more robust than the Visual Studio 6 version <strong>and</strong> works more quickly. You<br />

will also notice that IntelliSense has been improved since Visual Studio 2005. It is now smarter in that it<br />

remembers your preferred choices <strong>and</strong> starts with one of these choices instead of starting directly at the<br />

beginning of the sometimes rather lengthy lists that IntelliSense can now provide.<br />

The code editor also performs some syntax checking on your code <strong>and</strong> underlines most syntax errors with<br />

a short wavy line, even before you compile the code. Hovering the mouse pointer over the underlined text<br />

brings up a small box telling you what the error is. Visual Basic developers have been familiar with this<br />

feature, known as design - time debugging, for years; now <strong>C#</strong> <strong>and</strong> C++ developers can benefi t from it as well.<br />

other Windows<br />

In addition to the code editor, Visual Studio provides a number of other windows that allow you to view<br />

your project from different points of view.<br />

The rest of this section describes several other windows. If one of these windows is<br />

not visible on your screen, you can select it from the View menu. To show the design<br />

view <strong>and</strong> code editor, right-click the fi le name in the Solution Explorer <strong>and</strong> select View<br />

Designer or View Code from the context menu, or select the item from the toolbar<br />

at the top of the Solution Explorer. The design view <strong>and</strong> code editor share the same<br />

tabbed window.<br />

The Design View Window<br />

If you are designing a user interface application, such as a Windows application, Windows control library,<br />

or an ASP.<strong>NET</strong> application, you will use the Design View window. This window presents a visual overview<br />

of what your form will look like. You normally use the Design View window in conjunction with a window<br />

known as the toolbox. The toolbox contains a large number of .<strong>NET</strong> components that you can drag onto<br />

your program (see Figure 16 - 17).<br />

www.it-ebooks.info

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!