Published on

Published in: Technology
  • Be the first to comment

No Downloads
Total views
On SlideShare
From Embeds
Number of Embeds
Embeds 0
No embeds

No notes for slide
  • Complete objectives from the text: at the completion of this chapter, you will be able to ... 1. Describe the process of visual program design and development. 2. Explain the term object-oriented programming. 3. Explain the concepts of classes, objects, properties, methods, and events. 4. List and describe the three steps for writing a C# program. 5. Describe the various files that make up a C# project. 6. Identify the elements in the Visual Studio environment. 7. Define design time , run time , and debug time. 8. Write, run, save, print, and modify your first C# program. 9. Identify syntax errors, run-time errors, and logic errors. 10. Look up C# topics in Help.
  • Click on each element type to see an arrow to the examples in the figures.
  • GUI is pronounced "gooey".
  • OOP terminology is used throughout the text. The theory is presented in Chapter 12.
  • Express Editions are available for (currently) free download from Microsoft. The version that is bundled with this text is an evaluation version of the Professional Edition. The evaluation version can be used for 180 days. The version supplied to schools in the Academic Alliance is the Professional Edition. All programs in this text can be done with the Express Edition and Visual Web Developer (also a free download from Microsoft).
  • Planning: Design the user interface—draw a sketch of the screens the user will see when running the project; include forms and all controls that are to be used including the names to be assigned Plan the properties—for each object write down the properties that you plan to set or change during the design of the form Plan the C# code—plan the methods that will execute when the project runs including determining which events require action to be taken and then make a step-by-step plan for the actions. Use english-like pseudocode for the actions, rather than follow C# syntax. Programming: Define the user interface--create forms and controls Set the properties--give each object a name and define attributes such as the contents of a label. Write the C# code—use C# programming statements to carry out the actions needed by the program
  • The next slide shows the files in a project.
  • HelloForm.cs – Code written by the programmer HelloForm.Designer.cs – Code automatically generated by the Form Designer. A beginning programmer should ignore this file. HelloForm.resx – Resource file for the form. Can contain graphics and text strings for display on the form. HelloWorld.csproj – Project file.A text file that lists the files included in the project. HelloWorld.sln – Solution file. A text file that lists the projects included in the solution. HelloWorld.suo – Solution User Options file. Keeps the state of the environment from one run to the next. If you delete this file, the IDE reverts to the defaults. Program.cs – An automatically-generated file that is used to begin execution of a C# application. In Chapter 6 we edit this file if we want to change the startup form. HelloWorld.csproj.user – Project User Option file. Holds settings for the state of the environment for the project.
  • Form Designer – Lay out the form (the user interface), adding the controls, such as buttons and boxes. Editor – Write and edit the C# code. Compiler – Convert the C# code into runnable code (MSIL – Microsoft Intermediate Language). Debugger – Includes tools to single-step through program statements and display intermediate results. Covered in Chapter 4. Object Browser – Shows classes, objects, properties, methods, and events of all system elements, as well as classes you write. Covered in Chapter 12. Help –Includes extensive documentation, both local and on the Web. Referred to as MSDN – Microsoft Developers’ Network.
  • The title bar indicates the current mode. For Design Time, only the solution name displays. For Run Time, the solution name and (Running) display. For Debug Time, the solution name and (Debugging) display.
  • Note: You also can begin a new project from the Start Page, if it is displaying. This text assumes it to be closed.
  • In the Options dialog box, select Show all settings . Expand the Environment node and click on Startup . Drop down the list for At startup and select Show empty environment . By default, Show Start Page is selected.
  • Draw the sketch by hand and label the form and controls with the names you plan to give them.
  • Snap lines appear as you draw or move controls on the form. They can help align lefts, rights, or the text base line of controls.
  • Select a control on the form and the control’s properties appear in the Properties window. The default name of the first label is “label1” and the Text property is also “label1”. The namespace is the library location that holds the definition of the Label class.
  • Set the AutoSize property to False so that it doesn’t disappear when deselected.
  • Naming conventions are covered later. This style is called camel casing, and is the preferred convention for naming objects.
  • The next slide describes changing the form’s name and file name.
  • If you change the name of the form’s class in the properties window, you also must manually change the name of the file. It’s much better to change the name of the file and allow the IDE to rename the form’s class to match.
  • Details for comments, statement terminators, assignment statements, and executing a method are covered in the following slides.
  • Changing the name or deleting an event-handling method causes an error unless the change is also made in the Properties window. C# creates a program statement that is hidden in the FormName.Designer.cs file that assigns the method to the event. Although you can change the line of code using the Editor, the better solution is to make the change in the Properties window.
  • The next two slides detail the rules and conventions
  • MSDN – Microsoft Developer Network library. A good way to begin using Help is to view the topics that demonstrate how to look up topics in Help.
  • Ch01

    1. 1. Programming in Visual C# 2005 Chapter 1 Introduction to Programming and C#
    2. 2. Chapter Objectives (1 of 2) <ul><li>Describe the process of visual program design and development </li></ul><ul><li>Explain the term object-oriented programming </li></ul><ul><li>Explain the concepts of classes, objects, properties, methods, and events </li></ul><ul><li>List and describe the three steps for writing a C# program </li></ul><ul><li>Describe the various files that make up a C# project </li></ul>
    3. 3. Chapter Objectives (2 of 2) <ul><li>Identify the elements in the Visual Studio environment </li></ul><ul><li>Define design time , run time , and debug time </li></ul><ul><li>Write, run, save, print, and modify your first C# program </li></ul><ul><li>Identify syntax errors, run-time errors, and logic errors </li></ul><ul><li>Look up C# topics in Help </li></ul>
    4. 4. Creating Windows Applications <ul><li>Your C# programs will look and behave like standard Windows applications </li></ul><ul><li>Use standard elements </li></ul> Labels  Text Boxes  Buttons  Radio Buttons  Picture Boxes  Check Boxes  Menus  Drop-Down Lists  List Boxes  Group Boxes Click each element type to see example
    5. 5. Windows Graphical User Interface (GUI) <ul><li>Windows are called forms </li></ul><ul><li>Elements are called controls </li></ul><ul><li>Add controls to your forms using a toolbox </li></ul><ul><li>The controls that you add look like and behave like standard Windows controls </li></ul>
    6. 6. Programming Languages—Procedural, Event Driven, and Object Oriented <ul><li>Procedural—Cobol, Fortran, Basic </li></ul><ul><ul><li>Program specifies exact sequence of operations </li></ul></ul><ul><li>Event Driven—Early versions of Visual Basic </li></ul><ul><ul><li>Contains some elements of object orientation but not all </li></ul></ul><ul><li>Object Oriented Programming (OOP) </li></ul><ul><ul><li>User controls the sequence </li></ul></ul><ul><ul><li>Currently the most popular style of programming </li></ul></ul>
    7. 7. Object-Oriented Programming (OOP) <ul><li>Each object is based on a class (blueprint or template) </li></ul><ul><ul><li>Objects (noun, or thing) </li></ul></ul><ul><ul><li>Properties (attributes) </li></ul></ul><ul><ul><ul><li>Name, Color, Size, Location </li></ul></ul></ul><ul><ul><li>Methods (verb, or action) </li></ul></ul><ul><ul><ul><li>Close, Show, Clear </li></ul></ul></ul><ul><ul><li>Events (occurrence; user takes an action) </li></ul></ul><ul><ul><ul><li>Click, KeyPress </li></ul></ul></ul>
    8. 8. OOP Terminology <ul><li>Object.Property (Object dot Property) </li></ul><ul><ul><li>MainForm.BackColor </li></ul></ul><ul><ul><li>SalesForm.Text </li></ul></ul><ul><li>Object.Method (Object dot Method) </li></ul><ul><ul><li>BillingForm.Show </li></ul></ul><ul><ul><li>NameTextBox.Clear </li></ul></ul>
    9. 9. Object Model Analogy <ul><li>Class = automobile </li></ul><ul><li>Object = one specific automobile </li></ul><ul><ul><li>Object is an instance of the automobile class </li></ul></ul><ul><li>Properties = make, model, color, year </li></ul><ul><li>Methods = start, stop, speedup, slowdown </li></ul><ul><li>Events = car arrives, car crashes </li></ul>
    10. 10. Microsoft’s Visual Studio 2005 <ul><li>Includes: </li></ul><ul><li>.NET Framework </li></ul><ul><ul><li>Environment That Allows Objects from Many Languages to Interoperate </li></ul></ul><ul><ul><li>Each language is Converted to Microsoft Intermediate Language (MSIL) </li></ul></ul><ul><ul><li>MSIL runs in the Common Language Runtime (CLR) </li></ul></ul><ul><li>The Development Environment </li></ul><ul><ul><li>Tools for Writing and Testing Programs </li></ul></ul><ul><li>Programming Languages </li></ul><ul><ul><li>Visual C#, Visual Basic, Visual J#, C++ </li></ul></ul><ul><li>C# Versions </li></ul><ul><ul><li>Express Edition, Standard Edition, Professional Edition, Team System </li></ul></ul>
    11. 11. Steps for Planning & Writing C# Programs <ul><li>Planning the program </li></ul><ul><ul><li>Sketch the user interface </li></ul></ul><ul><ul><li>List the objects and properties needed </li></ul></ul><ul><ul><li>Plan the event-handling methods (the actions) </li></ul></ul><ul><li>Creating the program </li></ul><ul><ul><li>Define the user interface </li></ul></ul><ul><ul><li>Set the properties </li></ul></ul><ul><ul><li>Write the C# code </li></ul></ul>
    12. 12. C# Application Files <ul><li>Each application is called a solution </li></ul><ul><ul><li>One solution can contain multiple projects </li></ul></ul><ul><ul><li>Solution file — .sln extension </li></ul></ul><ul><li>Projects </li></ul><ul><ul><li>Can contain multiple forms </li></ul></ul><ul><ul><li>Project file — .csproj extension </li></ul></ul><ul><li>Form files </li></ul><ul><ul><li>.cs extension </li></ul></ul><ul><li>The Visual Studio environment creates several more files </li></ul>
    13. 13. Files for a C# Project Form files Project file Solution file Solution user options file C# File that runs the program Project user option file Resource File for the form
    14. 14. The Visual Studio Environment <ul><li>Integrated development environment (IDE) </li></ul><ul><li>Includes various tools including: </li></ul><ul><ul><li>Form Designer </li></ul></ul><ul><ul><li>Editor for entering C# code </li></ul></ul><ul><ul><li>Compiler </li></ul></ul><ul><ul><li>Debugger </li></ul></ul><ul><ul><li>Object Browser </li></ul></ul><ul><ul><li>Help </li></ul></ul>
    15. 15. Default Environment Settings <ul><li>Set to Visual C# Development Settings </li></ul><ul><ul><li>Can Do when installing Visual Studio </li></ul></ul><ul><ul><li>Also Can Do with </li></ul></ul><ul><ul><li>Tools/Import and Export Settings </li></ul></ul><ul><ul><li> and Reset all settings </li></ul></ul><ul><li>Turn Off Display of Start Page, if desired </li></ul><ul><ul><li>Can Turn it On or Off, as desired </li></ul></ul><ul><ul><li>Textbook Exercises & Figures Assume that the Start Page is not used </li></ul></ul>
    16. 16. Begin a C# Project <ul><li>Select File/New Project </li></ul><ul><li>New Project Dialog Box </li></ul>Select Visual C# Windows Select the Windows Application template Enter the Project Name
    17. 17. The Visual Studio IDE Toolbox Main Document window Solution Explorer Properties window  Each window can be moved, resized, closed, or customized
    18. 18. IDE Toolbars <ul><li>Toolbar buttons are shortcuts for menu items </li></ul><ul><li>Display or hide toolbars </li></ul><ul><ul><li>Select View/Toolbars to toggle on/off </li></ul></ul><ul><ul><li>Right-click in menu or toolbar area to display list of available toolbars and select to toggle on/off </li></ul></ul>
    19. 19. Toolbox & Document Window Pin Toolbox open with pushpin icon Use tab to change to Editor to edit code Form Designer tab – Use to create form Main Document window
    20. 20. Help Filte r Help with specific tasks Selected topic Help Search Index Results – Select topic to display Help Favorites tab Help Contents tab Index tab
    21. 21. IDE — 3 Modes of Operation <ul><li>Design Time </li></ul><ul><ul><li>Design the form </li></ul></ul><ul><ul><li>Write the code </li></ul></ul><ul><li>Run Time </li></ul><ul><ul><li>Run and test the program </li></ul></ul><ul><ul><li>Title bar of IDE indicates (Running) </li></ul></ul><ul><li>Debug Time </li></ul><ul><ul><li>Find and fix errors </li></ul></ul><ul><ul><li>Title bar of IDE indicates (Debugging) </li></ul></ul>Look at the IDE’s title bar to determine the current mode
    22. 22. Writing Your First C# Program – 1 <ul><li>Run Visual Studio 2005 </li></ul><ul><li>Start a new project </li></ul><ul><ul><li>File/New Project </li></ul></ul><ul><ul><li>Name the project “HelloWorld” </li></ul></ul>
    23. 23. Writing Your First C# Program – 2 <ul><li>Customize the environment </li></ul><ul><ul><li>Reset to the default settings </li></ul></ul><ul><ul><ul><li>Window/Reset Window ; respond Yes </li></ul></ul></ul><ul><ul><li>Pin open the Toolbox </li></ul></ul>Click the pushpin icon to pin the Toolbox open Point to the Toolbox icon to make the Toolbox appear
    24. 24. Writing Your First C# Program – 3 <ul><ul><li>Set the option to turn off the Start Page </li></ul></ul><ul><ul><ul><ul><li>(Optional) </li></ul></ul></ul></ul><ul><ul><ul><li>Select Tools/Options and Show all settings </li></ul></ul></ul>
    25. 25. Writing Your First C# Program – 4 <ul><li>Plan the project </li></ul><ul><ul><li>Sketch the user interface </li></ul></ul><ul><ul><li>Steps to plan the properties and code are already done for this first sample program </li></ul></ul>
    26. 26. Writing Your First C# Program – 5 <ul><li>Use the tools in the Toolbox to add controls to the form </li></ul>Double-click the Label tool to add a Label control to the form
    27. 27. Writing Your First C# Program – 6 <ul><li>Draw a button on the form </li></ul><ul><li>Click the tool and draw with the crosshair pointer </li></ul><ul><li>Use snap lines to help align the controls </li></ul>Draw the button control using the crosshair pointer Snap line
    28. 28. Writing Your First C# Program – 7 <ul><li>Select a control by clicking on it </li></ul><ul><li>A selected control has resizing handles </li></ul>Point to a resizing handle and drag to resize Resize a selected control Point inside control and drag to a new location Move a selected control Press the Delete key Delete a selected control Click on it Select a control
    29. 29. Writing Your First C# Program – 8 <ul><li>Add a second button and align the controls </li></ul><ul><li>Set the properties for the form and controls </li></ul><ul><li>Name property is used to refer to the object in code </li></ul><ul><li>Text property is the text that displays on the form for the user to see </li></ul>
    30. 30. Set Properties in the Properties Window Name of selected object Properties window Object box Settings box Namespace and class of selected object Selected property
    31. 31. Using the Properties Window <ul><li>The list of properties can be sorted alphabetically or grouped by function </li></ul><ul><li>The Name property sorts to the top of the list </li></ul><ul><li>For most controls you will change the Name property and the Text property </li></ul>Sort the Properties list alphabetically Type the new name in the Settings box The new name appears in the Object box
    32. 32. Writing Your First C# Program – 9 <ul><li>Set properties of the label </li></ul><ul><ul><li>Name property </li></ul></ul><ul><ul><ul><li>messageLabel </li></ul></ul></ul><ul><ul><li>AutoSize property </li></ul></ul><ul><ul><ul><li>False </li></ul></ul></ul><ul><ul><li>Text property </li></ul></ul><ul><ul><ul><li>(Blank) </li></ul></ul></ul><ul><ul><ul><li>Select it and press Delete </li></ul></ul></ul>Label is empty and selected
    33. 33. Lock the Controls <ul><li>After controls are where you want them, lock them in place </li></ul><ul><ul><li>Can unlock later if needed </li></ul></ul>Right-click on the form and select Lock Controls A button that is selected and locked
    34. 34. Writing Your First C# Program – 10 <ul><li>Change properties of the two buttons </li></ul><ul><ul><li>button1 </li></ul></ul><ul><ul><ul><li>Name – displayButton </li></ul></ul></ul><ul><ul><ul><li>Text – Display </li></ul></ul></ul><ul><ul><li>button2 </li></ul></ul><ul><ul><ul><li>Name – exitButton </li></ul></ul></ul><ul><ul><ul><li>Text – Exit </li></ul></ul></ul>
    35. 35. Writing Your First C# Program – 11 <ul><li>Change properties of the form </li></ul><ul><ul><li>Text property appears in the form’s title bar </li></ul></ul><ul><ul><li>Set StartPostion property to CenterScreen </li></ul></ul>Form’s Text property appears in the title bar Icon indicates that the form’s controls are locked
    36. 36. Changing the Name of a Form <ul><li>You must change the name of the form’s file and the name of the class </li></ul><ul><li>If you change the filename first, the IDE automatically changes the name of the class </li></ul><ul><ul><li>The reverse is not true </li></ul></ul>Change the name of the form’s file, keeping the .cs extension
    37. 37. Events <ul><li>While your program is running the user can perform actions, each of which causes an event to occur </li></ul><ul><li>You write event-handling methods for the events you care about; the events you want to respond to with code </li></ul><ul><li>C# will ignore any events for which you do not write code </li></ul>
    38. 38. C# Event Handlers <ul><li>Write C# code in methods </li></ul><ul><ul><li>Each begins with the words private void </li></ul></ul><ul><ul><li>Code in method is enclosed in braces { } </li></ul></ul><ul><li>C# names the event-handling method as the object name, and underscore (_) and the name of the event </li></ul><ul><ul><li>displayButton_Click </li></ul></ul>
    39. 39. Writing Code <ul><li>When writing code for the first project you will use </li></ul><ul><ul><li>Comment statements </li></ul></ul><ul><ul><li>Code statements terminated by a semicolon (;) </li></ul></ul><ul><ul><li>Assignment statements </li></ul></ul><ul><ul><li>Executing a method of an object </li></ul></ul>
    40. 40. Comment Statements <ul><li>Every method should begin with comments that describe the purpose and actions of the method </li></ul><ul><li>Non-executable statements within the code – have no effect on program execution </li></ul><ul><li>Automatically colored green by the editor </li></ul><ul><li>Single-line comments begin with two slashes </li></ul><ul><ul><li>// Display a message to the user. </li></ul></ul><ul><li>Multiline comments begin with /* and end with */ </li></ul><ul><li>/* First line </li></ul><ul><li> ... </li></ul><ul><li> Last line */ </li></ul>
    41. 41. C# Statements <ul><li>Most C# statements end with a semicolon (;) </li></ul><ul><li>A statement can be broken and appear on multiple lines; the semicolon determines the end of the statement </li></ul><ul><li>Comments and a few other C# statements do not end with a semicolon </li></ul><ul><ul><li>You will learn about some others later in the course </li></ul></ul>
    42. 42. Assignment Statements <ul><li>Assigns a value to a property or variable </li></ul><ul><li>Operates from right to left – the value that appears on the right side of the equal sign is assigned to the property named left of the equal sign </li></ul><ul><li>Enclose text strings in quotation marks ( &quot; &quot; ) </li></ul>messageLabel.Text = &quot;Hello World&quot;;
    43. 43. Execute a Method to End a Program <ul><li>Methods are always followed by parentheses </li></ul><ul><ul><li>Can help distinguish methods from properties, which never have parentheses </li></ul></ul><ul><li>To execute a method of an object, write: </li></ul><ul><li>Object.Method(); </li></ul><ul><li>Current form may be referenced as this </li></ul><ul><li>this.Close(); </li></ul><ul><li>Usually you will use this.Close() to end a program in an event-handling method for a Close button </li></ul>
    44. 44. Write Code for the First Program <ul><li>Double-click the Display button on the form </li></ul><ul><li>The Editor window opens </li></ul><ul><li>The header line for the event-handler is automatically created </li></ul><ul><li>The insertion point appears between the opening and closing braces </li></ul><ul><li>private void displayButton_Click(object sender, EventArgs e) </li></ul><ul><li>{ </li></ul><ul><li>| </li></ul><ul><li>} </li></ul>
    45. 45. Write the Event Handlers Editor tab Form Designer tab Comment statement Assignment statement Execute the Close method to end the program run
    46. 46. Run the Program (1 of 2) <ul><li>Use one of three techniques to run </li></ul><ul><ul><li>Use the Debug menu / Start Debugging </li></ul></ul><ul><ul><li>Press the Start Debugging toolbar button </li></ul></ul><ul><ul><li>Press F5, the keyboard shortcut </li></ul></ul>Form for the running application IDE title bar shows (Running)
    47. 47. Run the Program (2 of 2) Click the Display button The message appears in the label Click the Exit button to end the program and return to Design time
    48. 48. Saving a Project (1 of 2) <ul><li>By default, Visual Studio saves to a temporary folder. </li></ul><ul><li>When you close the project, you can choose to save or discard a temporary project </li></ul><ul><li>You can choose to save a project – use either File/Save All or the Save All toolbar button </li></ul>
    49. 49. Saving a Project (2 of 2) <ul><li>Enter a name and location for the project </li></ul><ul><li>A new folder is automatically created for the project </li></ul><ul><li>Do not select the option to Create a directory for the solution, which creates a second folder inside the first </li></ul>Do not select this option
    50. 50. Modify a Project <ul><li>Can reopen a project and make changes to the design and/or the code </li></ul><ul><li>Can get to event handlers using the Properties window </li></ul>Select the Events button to display the events for the selected control Selected event Properties button Event handler for the Click event – Double click to go quickly to the method in the Editor
    51. 51. Print the Code <ul><li>Select File/Print to print the contents of the Editor window </li></ul><ul><li>The Editor must be open for the menu option to appear </li></ul>
    52. 52. Finding & Fixing Errors <ul><li>Syntax errors </li></ul><ul><ul><li>Breaking the rules of the language </li></ul></ul><ul><ul><li>Generally found and reported by the Editor, the compiler finds the rest </li></ul></ul><ul><li>Run-Time errors or exceptions </li></ul><ul><ul><li>Program halts during execution due to such as an impossible arithmetic operation </li></ul></ul><ul><li>Logic errors </li></ul><ul><ul><li>Program runs but produces incorrect results </li></ul></ul><ul><ul><li>You must carefully proof your output to make sure that it is correct </li></ul></ul>
    53. 53. Compiling a Project <ul><li>When you begin execution, the first step is compiling </li></ul><ul><ul><li>C# statements are converted to Microsoft Intermediate Language (MSIL) </li></ul></ul><ul><ul><li>Any errors are reported </li></ul></ul><ul><ul><li>Zero errors is called a clean compile, which is necessary for the program to run </li></ul></ul>
    54. 54. Modifying an Event Handler <ul><li>Event handlers are named and connected to controls automatically by C# </li></ul><ul><li>To change the name of the method or delete a method </li></ul><ul><ul><li>Use the Events list in the Properties window to select the corrected method name or delete the method name </li></ul></ul>Select the event Delete the method name or drop down the list to select a new method name
    55. 55. Naming Rules and Conventions <ul><li>Good programmers follow naming rules and conventions </li></ul><ul><li>Most programming shops have standards that must be followed </li></ul><ul><li>When programmers consistently follow standards, programs are easier to read and to maintain, by both the original programmer and by others </li></ul>
    56. 56. Naming Rules <ul><li>Follow the requirements of the language </li></ul><ul><ul><li>Name must begin with a letter or an underscore </li></ul></ul><ul><ul><li>Can contain letters, digits, and underscores </li></ul></ul><ul><ul><li>Cannot contain a space or punctuation mark </li></ul></ul><ul><ul><li>Cannot be a reserved word, such as button or Close </li></ul></ul><ul><ul><li>Names are case-sensitive </li></ul></ul><ul><ul><ul><li>exitButton and ExitButton refer to 2 different objects </li></ul></ul></ul>
    57. 57. Naming Conventions (1 of 2) <ul><li>A set of guidelines for creating &quot;good&quot; names </li></ul><ul><ul><li>Create a meaningful name </li></ul></ul><ul><ul><li>Do not use abbreviations unless it is a very commonly used term </li></ul></ul><ul><ul><li>Append the full class name to the end of the name </li></ul></ul><ul><ul><li>For objects, use camel casing , which means to begin with a lowercase letter and begin each additional word with an uppercase letter </li></ul></ul><ul><ul><ul><li>messageLabel, exitButton, discountRateLabel </li></ul></ul></ul>
    58. 58. Naming Conventions (2 of 2) <ul><li>Rename all controls on a form, with the exception of labels used for identification on the form that are never referred to in code </li></ul><ul><li>To name forms and all other classes </li></ul><ul><ul><li>Use pascal casing , which is to begin with an uppercase letter and capitalize all following words </li></ul></ul><ul><ul><ul><li>HelloForm, MainForm, AboutForm </li></ul></ul></ul>
    59. 59. Visual Studio Help Additional Info <ul><li>MSDN Help is greatly changed and improved for Visual Studio 2005 </li></ul><ul><li>Filter Help to display only C# topics </li></ul><ul><li>Use context-sensitive help </li></ul><ul><ul><li>Point to object or click in a word in the Editor </li></ul></ul><ul><ul><li>Press F1 – Help will open with the selected topic displaying, if possible </li></ul></ul><ul><ul><li>For help in using the IDE, click on an area of the screen and press Shift + F1 </li></ul></ul>