Visual Studio.NET. Rex Jaeschke

Similar documents
TABLE OF CONTENTS TABLE OF CONTENTS... 1 INTRODUCTION... 2 USING WORD S MENUS... 3 USING WORD S TOOLBARS... 5 TASK PANE... 9

Table of Contents. Chapter 2. Looking at the Work Area

Horizon Launcher Configuration Guide

Sema Foundation ICT Department. Lesson - 18

Lesson 4 Customize the ToolBox

Windows 8.1 User Guide for ANU Staff

WINDOWS NT BASICS

Overview of Adobe Fireworks

Introduction to the Visual Studio.NET Integrated Development Environment IDE. CSC 211 Intermediate Programming

Using Windows 7 Explorer By Len Nasman, Bristol Village Computer Club

Dive Into Visual C# 2008 Express

Getting Started with Windows XP

TABLE OF CONTENTS TABLE OF CONTENTS... 1 INTRODUCTION... 3 BREAK... 4 DEFINITIONS... 4 STEP BY STEP- SECTION BREAK... 6 PAGE NUMBERS...

Microsoft Word Introduction

Lesson 4 - Creating a Text Document Using WordPad

2 The Stata user interface

2 Getting Started. Getting Started (v1.8.6) 3/5/2007

The NetBeans Debugger: A Brief Tutorial

Getting Started (1.8.7) 9/2/2009

Tutorial 2 - Welcome Application Introducing, the Visual Studio.NET IDE

Introduction. Key features and lab exercises to familiarize new users to the Visual environment

1. Adapting Your Work Environment

MICROSOFT POWERPOINT 2016 Quick Reference Guide

You might think of Windows XP as a set of cool accessories, such as

Introduction to IntelliJ

GraphWorX64 Productivity Tips

Writer Guide. Chapter 16 Customizing Writer

11.1 Create Speaker Notes Print a Presentation Package a Presentation PowerPoint Tips... 44

Unit III: Working with Windows and Applications. Chapters 5, 7, & 8

Microsoft Excel 2010 Part 2: Intermediate Excel

Windows 8.1 User Guide for ANU Staff

ORGANIZING YOUR ARTWORK WITH LAYERS

Interface. 2. Interface Adobe InDesign CS2 H O T

Contents. Launching Word

Using Microsoft Word. Getting Started With Word. Exercise 1 Starting the Program

Software Trajexia Studio USER MANUAL

AutoCAD 2009 User InterfaceChapter1:

CHAPTER 1 COPYRIGHTED MATERIAL. Getting to Know AutoCAD. Opening a new drawing. Getting familiar with the AutoCAD and AutoCAD LT Graphics windows

Visual Studio.NET. Although it is possible to program.net using only the command OVERVIEW OF VISUAL STUDIO.NET

Rio Hondo Prep Computer Applications Class

Appendix J: Using Shortcut Keys and Shortcut Menus

RAM JAYAM VIDYAA MANDIR MATRIC HR SEC SCHOOL. Cumbum. Theni district. 1 D.EASWARAN M.Sc B.Ed Computer Instructor RJMS_SCHOOL.

A Quick Tour GETTING STARTED WHAT S IN THIS CHAPTER?

Display Systems International Software Demo Instructions

Microsoft Excel for Lawyers - The Fundamentals Reference Guide

Microsoft PowerPoint 2007 Tutorial

Computer Basics. Hardware. This class is designed to cover the following basics:

Using Microsoft Word. Text Editing

Reference Services Division Presents WORD Introductory Class

Microsoft Office Training Skills 2010

WORD XP/2002 USER GUIDE. Task- Formatting a Document in Word 2002

Impress Guide Chapter 11 Setting Up and Customizing Impress

Introduction to Word 2010

Program and Graphical User Interface Design

The figure below shows the Dreamweaver Interface.

Start Menu Log off Turn Off Computer Run Search Help and Support

Windows 10 Essentials

Discovering Computers & Microsoft Office Office 2010 and Windows 7: Essential Concepts and Skills

MICROSOFT WORD 2010 BASICS

Using Open Workbench Version 1.1

Address Bar. Application. The space provided on a web browser that shows the addresses of websites.

Numbers Basics Website:

Windows Me Navigating

To learn more about the Milestones window choose: Help Help Topics Select the Index tab and type in the feature. For Example toolbox.

The Basics of PowerPoint

HAPPY HOLIDAYS PHOTO BORDER

2 TUTORIAL. Overview. VisualDSP Getting Started Guide 2-1 for SHARC DSPs

Lesson 1: Getting Familiar with Microsoft Word 2007 for Windows

Overview of Adobe Fireworks CS6

Microsoft Office Training Skills 2010

Introduction to MS Word XP 2002: An Overview

Getting Started Guide

FastTrack Schedule 10. Tutorials. Copyright 2010, AEC Software, Inc. All rights reserved.

Microsoft Word Basic Editing. Lesson , John Wiley & Sons, Inc. Microsoft Official Academic Course, Microsoft Word

SolidWorks Intro Part 1b

How to make a power point presentation. Dr. Mohamed F. Foda

Basic Windows 95 Skills

Here is a step-by-step guide to creating a custom toolbar with text

Coach s Office Playbook Tutorial Playbook i

SQL Server. Management Studio. Chapter 3. In This Chapter. Management Studio. c Introduction to SQL Server

Getting Started. Microsoft QUICK Source 7

LESSON ONE AND TWO TOPIC: HOW TO USE MICROSOFT WORD. : Putu Putra Astawa, S.Kom.,M.Kom

Welcome Application. Introducing the Visual Studio.NET IDE. Objectives. Outline

Introduction to Microsoft Word

1 Ctrl + X Cut the selected item. 2 Ctrl + C (or Ctrl + Insert) Copy the selected item. 3 Ctrl + V (or Shift + Insert) Paste the selected item

Microsoft Word 2007 on Windows

Microsoft How to Series

Photoshop Fundamentals

Impress Guide. Chapter 11 Setting Up and Customizing Impress

Switches between worksheet and menu / Ribbon. Calculates all worksheets in all open workbooks. Highlights shortcut keys of Menu and Ribbon items.

Quick Access Toolbar. You click on it to see these options: New, Open, Save, Save As, Print, Prepare, Send, Publish and Close.

The first time you open Word

The Fundamentals. Document Basics

Introduction to Word Processing

EXCEL TUTORIAL.

Open Book Format.docx. Headers and Footers. Microsoft Word Part 3 Office 2016

WHAT S NEW IN WORD 2007 & HOW TO CUSTOMIZE IT

Eclipse Quick Reference Windows Hosted

Impress Guide. Chapter 1 Introducing Impress

BasicScript 2.25 User s Guide. May 29, 1996

Transcription:

Visual Studio.NET Rex Jaeschke

Copyright c 2002, 2005 Rex Jaeschke. All rights reserved. Edition: 2.0 (matches V2) Printing: August 6, 2005 All rights reserved. No part of this publication may be reproduced, stored in a retrieval system, or transmitted in any form or by any means whatsoever, except in the case of brief quotations embodied in critical reviews and articles. The training materials associated with this book are available for license. These materials include overhead transparencies, instructor guide, and source code in electronic format. Interested parties should contact the author at the address below..net, Visual Basic, Visual C++, Visual C#, Visual J#, Visual Studio, Windows, and Office are trademarks of Microsoft. Java is a trademark of Sun Microsystems, Inc. Please address comments, corrections, and questions to the author: Rex Jaeschke 2051 Swans Neck Way Reston, VA 20191-4023 +1 (703) 860-0091 +1 (703) 860-3008 (fax) rex@rexjaeschke.com ii

CONTENTS iii Contents 1 Introduction 1 2 Getting Started 2 2.1 Menu Basics................................................... 2 2.2 Toolbar Basics................................................. 4 2.3 ToolTips..................................................... 7 2.4 Full Screen Mode................................................ 7 2.5 Toolbars Revisited............................................... 7 2.6 Menus Revisited................................................ 14 2.7 Managing Windows.............................................. 15 2.8 Getting Help.................................................. 19 2.9 Microsoft Office................................................. 19 3 Editing Text 20 3.1 Document Windows Control.......................................... 20 3.2 Line Numbers.................................................. 26 3.3 Cutting, Copying, and Pasting Text..................................... 29 3.4 Bookmarks................................................... 31 3.5 Outlining and Hiding Text........................................... 32 3.6 Searching and Replacing Text......................................... 33 3.7 Miscellaneous Features............................................. 38 3.8 Macros...................................................... 39 4 Editing Source Code 42 4.1 General..................................................... 42 4.2 Task Lists.................................................... 44 4.3 Getting Language-Specific Help........................................ 47 5 Solutions and Projects 48 5.1 An Introduction................................................ 48 5.2 Creating New Projects............................................. 49 5.3 Configurations................................................. 51 5.4 Building and Using a DLL........................................... 53 5.5 Building a Multi-Language Program..................................... 56 6 Browsing 58 7 Debugging 62 7.1 The Basics................................................... 62 7.2 Tracing Method Calls............................................. 67 7.3 Breakpoints................................................... 68 7.4 Objects..................................................... 71 7.5 Inspecting Memory............................................... 71 7.6 The Command Window............................................ 73 7.7 Debugging Macros............................................... 74 7.8 Debugging A Multi-Language Program.................................... 75 7.9 Exception Handling.............................................. 75 7.10 Multi-Threaded Programs........................................... 77

iv Visual Studio.NET

1. Introduction 1 1 Introduction The on-line help facility for Visual Studio.NET contains a lot of useful information about using that tool. However, that information really isn t organized in a tutorial fashion, and no source examples are supplied for testing. The information contained in this document, along with the accompanying demonstration files, is intended to get people up to speed with the Visual Studio.NET IDE in a day, assuming they have a working knowledge of using Windowsbased programs. Visual Studio.NET is intended to provide a single integrated development environment for the development of software in a Microsoft Windows environment. Prior to the release of this product, different versions of the IDE existed for Visual Basic, Visual C++, and Visual J++, each with its own text editor, debugger, idiosyncrasies, strengths, and weaknesses. Before staring this tutorial you should create a directory called VSNET and copy all of the associated files to that directory. Lines beginning with indicate actions you should perform. All mouse click instructions assume the mouse is configured for right-hand use.

2 Visual Studio.NET 2 Getting Started 2.1 Menu Basics Start Visual Studio.NET by selecting it from an icon on the desktop, an item in the Start menu, or from the Start menu item Programs. Close all windows that appear except for the main one, which you should maximize. The top left of the display should look like the following (it may contain other things too, but you can ignore those for now): The names File, Edit, View, Tools, Window, Community, and Help indicate menus, and they are attached to an invisible horizontal menubar. Menus contain items, and an item may be a submenu which, in turn, contains other items, some of which are submenus, and so on. In different operating modes, the menubar may have other menus as well as, or instead of, those shown above. Right-click anywhere on the menubar, and in the list that is displayed, clear each item that is checked. (You must clear them one at a time.) Note that the list may exceed the height of your screen, in which case, you need to position the mouse over the black down-arrow at the bottom of the list to scroll down. Select the following menu and submenu items in order: Tools, Options, Environment, and Startup. (In future, such a menu selection will be written as Tools Options Environment Startup.) From the At startup: listbox chose Show empty environment. This ensures that the IDE starts out empty next time it is run. Close the options window. If any tabs appear against the left or right edge (such as the Server Explorer window), hover over each tab in turn, right-click that tab s window taskbar, clear Auto Hide, and close that window, Now the screen should contain only the menubar, as shown above. (The letters are only underlined if the Alt key is pressed.) A menu can be displayed either by clicking it or by typing the Alt key followed by the menu s underlined letter key which, for File, is F, for Edit is E, and so on. The underlined letter is called a shortcut, and can be entered in either upper- or lowercase. Select the File menu with the mouse, and hold the cursor over the menu item New. The display should look as follows, with each black triangle pointing to a corresponding submenu:

2. Getting Started 3 The menu items displayed at half intensity (such as Close and Print) are currently disabled. Drag the mouse down the File menu s item list noting that only enabled items are highlighted as the mouse cursor passes over them. Press the Esc key once for each nested menu level to be closed. Create the same File menu display by using the Alt key and the appropriate shortcuts. Use the up- and down-arrow keys to traverse the File menu s item list noting that the boxes around disabled items are not filled with color. Use the right- and left-arrow keys to enter and leave a submenu, respectively. Display the View menu; it should look like this:

4 Visual Studio.NET Some of the menu items contain shortcuts. For example, Ctrl+Alt+L is the shortcut for Solution Explorer, while F4 is the shortcut for Properties Window. Menu item shortcuts are unique across all menus. These shortcuts can only be used when all menus are closed. Using shortcuts for disabled items has no affect. The IDE supports multiple sets of shortcut key mappings for backward compatibility with earlier versions of Visual Basic and Visual C++. To ensure that the shortcuts that appear on your system match those shown in this tutorial, you need to set the shortcut scheme to that for Visual Studio.NET. Do this by selecting Tools Options Environment Keyboard, and setting Apply the following additional keyboard mapping scheme: to (Default) Setting ]. With all menus closed, test the two shortcuts mentioned above, in turn, closing the window that results for each one. 2.2 Toolbar Basics The left margin of some menu items shows the corresponding toolbar button that can be used to achieve the same purpose. (Toolbars will be discussed later.) For example, a number of the Edit menu items contain such buttons: Note, however, that no indication is given as to which (of the many) toolbars actually contains that button. A toolbar is a horizontally or vertically arranged set of selectable options, most of which are generally buttons. (Such buttons are often referred to as commands). There are more than 20 predefined toolbars with each one containing options having some related purpose. For example, the Text Editor toolbar contains options to assist with editing text. As you saw earlier, the toolbar menu can be displayed by right-clicking anywhere on the menubar. An alternate approach is to use View Toolbars. When all toolbar menu items are unchecked it should look like the following 1 (the tall menu has been broken into three parts to fit this page): 1 Some versions of Developer Studio.NET contain more toolbars than others, since they provide more features.

2. Getting Started 5 Check some items in the toolbar menu and note what happens. Each will result in a corresponding toolbar s being displayed in one of a number of locations. (You ll learn how to control the shape and location of toolbars in 2.5.) Uncheck all toolbar menu items. An alternate way to enable and disable toolbars is via Tools Customize and the tab Toolbars, which results in the following display:

6 Visual Studio.NET Note that the menubar is listed as a toolbar; however, this toolbar cannot be hidden. Hide all other toolbars except for Standard. If this toolbar seems to be floating around in its own window, drag that window upward until it attaches itself to the bottom of the menubar. If this toolbar is already attached to the bottom or side edges of the main window, select the line of gray dashes on the top (or left) end and drag the toolbar upward until it attaches itself to the bottom of the menubar. The top left corner of the main window should look like this: Toolbar options that are disabled are displayed in gray.