Introduction to.net and C#

Similar documents
Intro to Web Development

Using the Query Analyzer

DEPLOYING A VISUAL BASIC.NET APPLICATION

Configuring the SST DeviceNet OPC Server

Introduction to the Visual Studio.NET IDE

Before you can use the Duke Ambient environment to start working on your projects or

New Features in Microsoft Office 2007

Word basics. Before you begin. What you'll learn. Requirements. Estimated time to complete:

MS WORD 2007 (PC) Macros and Track Changes Please note the latest Macintosh version of MS Word does not have Macros.

Creating Your Personal Website

Walkthrough: Creating and Using an ASP.NET Web Service in Visual Web Developer

3 IDE (Integrated Development Environment)

Hypercosm. Studio.

Introduction to Word 2007

Microsoft Migrating to PowerPoint 2010 from PowerPoint 2003

Introduction to the use of the environment of Microsoft Visual Studio 2008

Quick Start Tutorial. Using the TASKING* Software Development Tools with the Intel 8x930 Family Evaluation Board

Using Microsoft Visual Studio API Reference

Quick Reference Guide

Handout: Word 2010 Tips and Shortcuts

Migrating to Excel 2010 from Excel Excel - Microsoft Office 1 of 1

Microsoft Word 2011: Create a Table of Contents

Quick Reference Guide

1. Click the File tab 2. Click "Options" 3. Click "Save" 4. In the line labeled "Default file location", browse to the desired folder 5.

Programming with the Dev C++ IDE

How to test and debug an ASP.NET application

Umbraco v4 Editors Manual

Crystal Reports. For Visual Studio.NET. Reporting Off ADO.NET Datasets

14.1. bs^ir^qfkd=obcib`qflk= Ñçê=emI=rkfuI=~åÇ=léÉåsjp=eçëíë

TAMUS Terminal Server Setup BPP SQL/Alva

To Begin Customize Office

Enhancing the SAS Enhanced Editor with Toolbar Customizations Lynn Mullins, PPD, Cincinnati, Ohio

Installing Basic PAYE Tools onto a networked computer

Creating forms in Microsoft Access 2007

Creating a Simple Visual C++ Program

MAS 500 Intelligence Tips and Tricks Booklet Vol. 1

Microsoft Migrating to Word 2010 from Word 2003

Microsoft PowerPoint Tutorial


Creating Personal Web Sites Using SharePoint Designer 2007

Working with SQL Server Integration Services

Setting up DCOM for Windows XP. Research

ZIMBRA LAYOUT. Keyboard Shortcuts Hitting G and the beginning letter of any of the tabs will instantly take you to that tab

Excel 2007 Basic knowledge

creating a text-based editor for eclipse

Mitigation Planning Portal MPP Reporting System

Developing and Implementing Windows-Based Applications With Microsoft Visual C#.NET and Microsoft Visual Studio.NET

WebLOAD IDE User's Guide Version 8.0

Debugging JavaScript and CSS Using Firebug. Harman Goei CSCI 571 1/27/13

Advanced Presentation Features and Animation

Adept DeskTop Online User Guide

Symantec Enterprise Vault

Toad for Data Analysts, Tips n Tricks

Using Example Projects, Code and Scripts to Jump-Start Customers With Code Composer Studio 2.0

What's New in BarTender 2016

For Introduction to Java Programming, 5E By Y. Daniel Liang

Virtual Office Remote Installation Guide

After you complete the survey, compare what you saw on the survey to the actual questions listed below:

Excel 2007: Basics Learning Guide

Microsoft Excel Introduction to Microsoft Excel 2007

MICROSOFT OUTLOOK 2010 READ, ORGANIZE, SEND AND RESPONSE S

Creating, Running, and Scheduling Scripts

Creating a Web page L E S S O N 8. Suggested teaching time. Lesson objectives minutes. To be able to create a Web page, you will:

Microsoft Visual Studio 2010 Instructions For C Programs

BIGPOND ONLINE STORAGE USER GUIDE Issue August 2005

Switching from PC SAS to SAS Enterprise Guide Zhengxin (Cindy) Yang, inventiv Health Clinical, Princeton, NJ

MEAP Edition Manning Early Access Program Hello! ios Development version 14

Microsoft Office Excel 2007 Key Features. Office of Enterprise Development and Support Applications Support Group

PaperPort Getting Started Guide

Microsoft Office Access 2007 which I refer to as Access throughout this book

Developing, Deploying, and Debugging Applications on Windows Embedded Standard 7

MS Word 2007 practical notes

SQL Server 2005: Report Builder

Website Creator Pro Quick Reference Guide. Version: 0.5

I Didn t Know SAS Enterprise Guide Could Do That!

Part I. Understanding Visual Studio 2010 Essentials

Microsoft Outlook 2010 Part 1: Introduction to Outlook

Chapter 1. Introduction to ios Development. Objectives: Touch on the history of ios and the devices that support this operating system.

Lab: Create Your Own Homepage! This exercise uses MS Expression Web as a Web Page creation tool. If you like you

Quick Reference Guide 1 Skype For Business Using the Application

UML Class Diagrams (1.8.7) 9/2/2009

Outlook basics. Identify user interface elements that you can use to accomplish basic tasks.

Wakanda Studio Features

IBM Rational Developer for i. Maintain an ILE RPG application using Remote System Explorer Edit, Compile, and Debug

Microsoft Office Publisher 2010

Visual Basic. murach's TRAINING & REFERENCE

Embroidery Fonts Plus ( EFP ) Tutorial Guide Version

Visual Basic 2010 Essentials

Using Crystal Reports with VFP

Microsoft Access 2010 handout

How to install and use the File Sharing Outlook Plugin

TRIAL SOFTWARE GUIDE 1. PURPOSE OF THIS GUIDE 2. DOWNLOAD THE TRIALSOFTWARE 3. START WIDS 4. OPEN A SAMPLE COURSE, PROGRAM

Dreamweaver. Introduction to Editing Web Pages

Visual Studio.NET Database Projects

Context-sensitive Help Guide

Outlook . User Guide IS TRAINING CENTER. 833 Chestnut St, Suite 600. Philadelphia, PA

I ntroduction. Accessing Microsoft PowerPoint. Anatomy of a PowerPoint Window

Microsoft Expression Web Quickstart Guide

Microsoft Office 2007

Contents. Launching FrontPage Working with the FrontPage Interface... 3 View Options... 4 The Folders List... 5 The Page View Frame...

Transcription:

Object-Oriented Programming Chapter 1 Introduction to.net and C# 1

Chapter 1 Introduction to.net and C# Chapter 1 Introduction to.net and C# The C# language is used to create applications that display on a black window referred to as the DOS prompt or DOS window. As well as windows applications and web sites. To study the C# language, we will use Microsoft Visual C# 2008 Express Edition or Microsoft Visual C# 2008 Professional. To get Microsoft Visual C# 2008 Express Edition, you can download it free from the Microsoft web site. After downloading it, you can install it. To launch Microsoft Visual C# 2008 Express Edition, you can click Start -> (All) Programs -> Microsoft Visual C# 2008 Expression Edition. C# (see sharp) C# is an event-driven, fully object-oriented, visual programming language in which programs are created using an Integrated Development Environment (IDE). With the IDE, a programmer can create, run, test and debug C# programs. Microsoft.NET It is a new vision for implementations of the Internet and the Web in the development, engineering and use of software. Developers can create a.net application in any.net-compatible language such as C#, Visual C++.NET, Visual Basic.NET and many others..net Framework This framework manages and executes applications and Web services, contains a class library (FCL), enforces security and provides many programming capabilities. 2

Object-Oriented Programming Figure 1:.NET Framework In general we can execute an operation from the menus, from the toolbar,or from short cuts. Tool tips may help you. New projects can be created by selecting File > New > Project... from the menu bar. 3

Chapter 1 Introduction to.net and C# Menus Menu File Edit View Project Build Debug Data Format Tools Windows Help Contains commands for opening projects, closing projects, printing projects... such as cut, paste, find, undo, etc. displaying IDE windows and toolbars. adding features, such as forms, to the project. compiling a program. debugging and executing a program. interacting with databases. arranging a form s controls. additional IDE tools and options to customize it. arranging and displaying windows. getting help. In the next pages we illustrate the specific.net menus. 4

Object-Oriented Programming 1.Build Menu The Build menu gives you options for compiling, or building, your project or group of projects in a solution. When you build a solution, you build all items in the solution. A rebuild only builds items that have changed since the last build or rebuild. Configuration Manager enables you to specify the type of build. If the build is a debug build, a PDB file is created with your output assembly that contains debug information that can be used by the Visual Studio.NET debugger or external debuggers. If you select Release for the build, no debug information created. 2.Debug Menu Later, you learn all about the various debugging capabilities in.net such as breakpoints and stepping into, over, etc. F5 key runs your applications. Ctrl+F5 shortcut runs your application without debugging, meaning the syntax checks are skipped. 3. Format Menu 5

Chapter 1 Introduction to.net and C# You can set sizing, spacing, tab order, and alignment. 4. Tools Menu you can do everything from debugging processes to running external applications such as Spy++. Notice(1) in tools menu, Build Comment Web Pages. This is a cool feature that generates HTML pages on the structure of classes, methods, properties, and events in your solution. The output looks like the following figure. In C#, you can embed custom comments in your code with an XML-like syntax as : ///<summary> /// This item does so and so ///</summary> ///<remarks> /// Relevant remarks on an object ///</remarks> 6

Object-Oriented Programming The complete list of tags that C# supports for building comment Web pages are : <summary></summary> Describes a member for a type <remarks></remarks> Specifies overview information for a class or other type <param></param> Used to describe one of the parameters for a method <returns></returns> Used to describe the return value of a method <newpara></newpara> Starts a new paragraph in the comments Notice(2) Options dialog The Options dialog is broken down by tree nodes displayed on the left. The Environment, General node to modify general IDE settings, e.g. number of items to display on Start Page, tabbed or MDI documents, auto-complete. Depending on your screen resolution make the Most Recently Used List to somewhere between 15 and 24. Fonts and Colors :changes the default font of the Code Editors. 7

Chapter 1 Introduction to.net and C# Help Location : internal shows help inside of the IDE or External opens all F1 requests outside the IDE. Keyboard : modify or add new shortcut keys for mostly used items. Task List and Comments : Compilation errors shown in Task List. You can also add comments throughout your applications with special predefined tokens or custom tokens that you add. In the Comment Tokens section, I added FOR_TESTING comment token to my Task List. Now, any time I add a comment prefixed with FOR_TESTING, it shows up in my Task List. Double-clicking on task items, get to the line of code where comment was placed. By default, the Task List displays only errors. To see everything, you must right-click on the Task List and select Show Tasks, All. 8

Object-Oriented Programming b. Visual Studio.NET Windows 1. Solution Explorer window lists all the files in the solution. Shortcut = F4 key 9

Chapter 1 Introduction to.net and C# 2. Toolbox contains reusable software components (or controls) that can be used to customize applications. Using visual programming, programmers can drag and drop controls onto a form instead of writing code themselves. Ctrl+Alt+X shortcut. 10

Object-Oriented Programming 11

Chapter 1 Introduction to.net and C# 3. Properties window allows manipulation of properties of a form or control. Specify information about a control, such as size, color and position. The bottom contains a description of the selected property. Ctrl+Alt+L shortcut. 12

Object-Oriented Programming When programming windows, we uses the form builder. It is easy to change properties, here we change the form back color to yellow. c. Toolbars To view a list of available toolbars, you can right-click the main toolbar on the top of the IDE and a checked list of toolbars pops up. To view a toolbar, simply select it from the list. 13

Chapter 1 Introduction to.net and C# 14