x Microsoft Visual Studio 2010: A Beginner’s Guide
Floating Windows ............................................................ 19
Tabbed Windows ............................................................. 20
Closing and Opening Windows ............................................... 21
Modifying Environment Settings after Setup . .. . .. .. . .. .. . .. .. . .. .. . .. .. . .. .. . .. .. . . 22
Exporting Selected Environment Settings . . .. .. . .. .. . .. .. . .. .. . .. .. . .. .. . .. .. . 23
Importing Selected Environment Settings . . .. .. . .. .. . .. .. . .. .. . .. .. . .. .. . .. .. . 24
Resetting All Settings ......................................................... 28
Familiarization with Visual Studio Project Types .. .. .. . .. .. . .. .. . .. .. . .. .. . .. .. . .. .. 30
Windows Projects ............................................................ 32
Web Projects ................................................................. 33
Office Projects ................................................................ 34
SharePoint Projects ........................................................... 34
Database Projects ............................................................. 34
Summary ........................................................................... 34
2 Learning Just Enough C# or VB.NET: Basic Syntax . . .. .. . .. .. . .. .. . .. .. 35
Starting a Bare-Bones Project ....................................................... 36
Examining the Code Skeleton ....................................................... 39
The Main Method ............................................................ 40
The Program Class ........................................................... 41
The FirstProgram Namespace ................................................. 42
An Overview of the VS Code Editor ................................................ 43
Class and Member Locators ................................................... 44
Bookmarks ................................................................... 44
Setting Editor Options ........................................................ 45
Saving Time with Snippets .................................................... 47
Coding Expressions and Statements ................................................. 49
Making Intellisense Work for You ............................................. 49
Running Programs ............................................................ 51
Primitive Types and Expressions .............................................. 52
Enums ........................................................................ 55
Branching Statements ......................................................... 57
Loops ........................................................................ 61
Summary ........................................................................... 66
3 Learning Just Enough C# and VB.NET: Types and Members ... . .. .. . .. . 67
Creating Classes .................................................................... 68
Class Syntax .................................................................. 68
Class Inheritance ............................................................. 70
The class Snippet ............................................................. 71
Writing Methods .................................................................... 72
Declaring and Using a Method ................................................ 72
Declaring Parameters and Passing Arguments .. . .. .. . .. .. . .. .. . .. .. . .. .. . .. .. . 75