CIS 3260 Intro. to Programming with C#

Similar documents
Introduction. Programming and

Skill Area 336 Explain Essential Programming Concept. Programming Language 2 (PL2)

CIS 3260 Intro. to Programming with C#

Microsoft Visual Basic 2005: Reloaded

Using Visual Basic Studio 2008

UNIT 1. Introduction to Microsoft.NET framework and Basics of VB.Net

Visual Basic.NET Programming Introduction to Visual Basic.NET. (Part I of IV)

Programming in Visual Basic with Microsoft Visual Studio 2010

PROGRAMMING IN VISUAL BASIC WITH MICROSOFT VISUAL STUDIO Course: 10550A; Duration: 5 Days; Instructor-led

Skill Area 336 Explain Essential Programming Concept. Programming Language 2 (PL2)

INTRODUCTION TO.NET. Domain of.net D.N.A. Architecture One Tier Two Tier Three Tier N-Tier THE COMMON LANGUAGE RUNTIME (C.L.R.)

Developing Microsoft.NET Applications for Windows (Visual Basic.NET)

Microsoft Visual Studio 2010

Windows Presentation Foundation Programming Using C#

CIS 3260 Intro to Programming with C#

DOT NET Syllabus (6 Months)

CST272 Getting Started Page 1

Unit 1: Visual Basic.NET and the.net Framework

Introduction to.net Framework

C# Syllabus. MS.NET Framework Introduction

Getting started 7. Setting properties 23

C# is intended to be a simple, modern, general-purpose, objectoriented programming language. Its development team is led by Anders Hejlsberg.

.Net. Course Content ASP.NET

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

Fundamental C# Programming

Introduction to Programming Microsoft.NET Applications with Visual Studio 2008 (C#)

New programming language introduced by Microsoft contained in its.net technology Uses many of the best features of C++, Java, Visual Basic, and other

Chapter 1:- Introduction to.net. Compiled By:- Ankit Shah Assistant Professor, SVBIT.

James Foxall. Sams Teach Yourself. Visual Basic 2012 *24. Hours. sams. 800 East 96th Street, Indianapolis, Indiana, USA

Introduction to Microsoft.NET Framework Programming using VS 2005 (C#)

PESIT- Bangalore South Campus Hosur Road (1km Before Electronic city) Bangalore

Oracle Fusion Middleware 11g: Build Applications with Oracle Forms

Department of Computer Applications

Analysis of the Benchmark while Extracting Data from Database or XML File for Different Platforms

Migrate Your Skills to Microsoft.NET Framework 2.0 and 3.0 using Visual Studio 2005 (C#)

CIS Intro to Programming in C#

INFS 214: Introduction to Computing

Introduction to.net Framework Week 1. Tahir Nawaz

CIS 3260 Intro to Programming in C#

Chapter 12. OOP: Creating Object-Oriented Programs The McGraw-Hill Companies, Inc. All rights reserved. McGraw-Hill

Copyright Notice SmartBear Software. All rights reserved.

Oracle Fusion Middleware 11g: Build Applications with Oracle Forms

LESSON B. The Toolbox Window

Developing Microsoft.NET Applications for Windows (Visual Basic.NET)

Chapter 12. OOP: Creating Object- Oriented Programs. McGraw-Hill. Copyright 2011 by The McGraw-Hill Companies, Inc. All Rights Reserved.

LESSON A. The Splash Screen Application

Program Contents: DOTNET TRAINING IN CHENNAI

EEE-425 Programming Languages (2013) 1

Oracle Fusion Middleware 11g: Build Applications with Oracle Forms

Programming in C# with Microsoft Visual Studio 2010

10/9/2012. Sample C# program:

Chapter 1 Introduction to Dreamweaver CS3 1. About Dreamweaver CS3 Interface...4. Creating New Webpages...10

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

CST242 Windows Forms with C# Page 1

Getting started 7. Setting properties 23

Introduction to Programming Microsoft.NET Framework Applications with Microsoft Visual Studio 2005 Course #MS4994A 5 Days COURSE OUTLINE

with TestComplete 12 Desktop, Web, and Mobile Testing Tutorials

..to the Berlin BAU Software Lab! Let's have two interesting weeks together! (c)schmiedecke C# and.net

COPYRIGHTED MATERIAL PART I. CHAPTER 1: Introducing C# CHAPTER 2: Writing a C# Program. CHAPTER 3: Variables and Expressions. CHAPTER 4: Flow Control

Part I. Integrated Development Environment. Chapter 2: The Solution Explorer, Toolbox, and Properties. Chapter 3: Options and Customizations

Introduction to Programming Microsoft.NET Framework Applications with Microsoft Visual Studio 2005 (C#)

Learn to develop.net applications and master related technologies.

Fig 1.1.NET Framework Architecture Block Diagram

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

Windows Presentation Foundation (WPF)

The C# Language PART I. CHAPTER 1: Introducing C# CHAPTER 2: Writing a C# Program. CHAPTER 3: Variables and Expressions. CHAPTER 4: Flow Control

Top 40.NET Interview Questions & Answers

Introduction to.net Framework and Visual Studio 2013 IDE MIT 31043, Visual Programming By: S. Sabraz Nawaz

.NET FRAMEWORK. Visual C#.Net

Creating a new CDC policy using the Database Administration Console

An Introduction to.net for the J2EE Programmer

SECURED PROGRAMMING IN.NET DETAILED TRAINING CONTENT INDUSTRIAL TRAINING PROGRAM ( )

Microsoft.NET Programming (C#, ASP.NET,ADO.NET, VB.NET, Crystal Report, Sql Server) Goal: Make the learner proficient in the usage of MS Technologies

News in RSA-RTE 10.1 updated for sprint Mattias Mohlin, April 2017

Oracle Forms Developer 10g: Build Internet Applications

Visual Studio.NET for AutoCAD Programmers

COPYRIGHTED MATERIAL. Part I: Getting Started. Chapter 1: IDE. Chapter 2: Controls in General. Chapter 3: Program and Module Structure

Appleworks 6.0 Word Processing

CHAPTER 1: INTRODUCING C# 3

Slide 1 CS 170 Java Programming 1 Duration: 00:00:49 Advance mode: Auto

Dot Net Online Training

Course Syllabus C # Course Title. Who should attend? Course Description

Getting started 7. Storing values 21. Creating variables 22 Reading input 24 Employing arrays 26 Casting data types 28 Fixing constants 30 Summary 32

Microsoft Windows XP. Operating System. Starting Windows XP. You might be asked to enter your username and password

C++/CLI Essentials. Student Guide Revision 1.0. Object Innovations Course 431

Introducing C# After this discussion, we'll move on to a simple description of C# itself, including its origins and similarities to C++.

DOT NET SYLLABUS FOR 6 MONTHS

Introduction to IntelliJ

UNIT V - ADO.NET Database Programming with ADO.NET- Data Presentation Using the DataGridView Control- DataGridView- Updating the Original Database.

Part I: Programming Access Applications. Chapter 1: Overview of Programming for Access. Chapter 2: Extending Applications Using the Windows API

Unit-1. Components of.net Framework. 1. Introduction to.net Framework

COPYRIGHTED MATERIAL. Contents. Part I: C# Fundamentals 1. Chapter 1: The.NET Framework 3. Chapter 2: Getting Started with Visual Studio

Dot Net Framework 4.0: Advanced Microsoft C#.NET Web Development

Introduction to.net Framework and Visual Studio 2013 IDE MIT 31043, Rapid Application Development By: S. Sabraz Nawaz

Using the Web in Mathematics Foundations Course An Introduction to Microsoft PowerPoint Sarah L. Mabrouk, Framingham State College

.Net Interview Questions

Getting Started with. Microsoft Office 2010

University of West Bohemia in Pilsen. Faculty of Applied Sciences. Department of Computer Science and Engineering DIPLOMA THESIS

Text box. Command button. 1. Click the tool for the control you choose to draw in this case, the text box.

Visual Basic Program Coding STEP 2

Transcription:

Introduction to Programming and Visual C# 2008 McGraw-Hill 2010 The McGraw-Hill Companies, Inc. All rights reserved. Describe the process of visual program design and development Explain the term object-oriented programming Explain the concepts of classes, objects, properties, methods, and events Describe the various files that make up a C# project McGraw-Hill 2010 The McGraw-Hill Companies, Inc. All rights reserved. 1-2 Identify the elements in the Visual Studio environment Define design time, run time, and debug time Identify syntax errors, run-time errors, and logic errors Look up C# topics in Help McGraw-Hill 2010 The McGraw-Hill Companies, Inc. All rights reserved. 1-3 Dr. David McDonald Chapter 1 Page 1

Your C# programs will look and act like standard Windows programs Use tools to create: Labels Text boxes Buttons Radio buttons Picture box Check box Menu Bar Drop-down list List box Group box McGraw-Hill 2010 The McGraw-Hill Companies, Inc. All rights reserved. 1-4 Windows GUI defines how elements look and function Windows are called forms Elements are called controls Add controls to your forms using the toolbox C# projects follow the object-oriented programming (OOP) technique McGraw-Hill 2010 The McGraw-Hill Companies, Inc. All rights reserved. 1-5 Procedural Basic, C, Cobol, Fortran, PL/1, Pascal Program specifies exact sequence of operations Object Oriented Programming (OOP) C#, Java, Visual Basic User controls the sequence User actions cause events to occur which trigger methods McGraw-Hill 2010 The McGraw-Hill Companies, Inc. All rights reserved. 1-6 Dr. David McDonald Chapter 1 Page 2

Objects have properties, methods and events An object is based on a class Objects (noun or thing) Forms, Controls Properties (adjectives) Name, Color, Size, Location Methods (verbs) Close, Show, Clear Events (occurs when user takes action) Click, KeyPress, Scroll, Close window Classes (template or blueprint) Contain definition of all available properties, methods and events McGraw-Hill 2010 The McGraw-Hill Companies, Inc. All rights reserved. 1-7 Object.Property SalesForm.Text Object.Method BillingForm.Show() exitbutton.show() McGraw-Hill 2010 The McGraw-Hill Companies, Inc. All rights reserved. 1-8 Class = automobile Object = one individual automobile Object is an instance of the automobile class Properties = make, model, color, engine, number of doors Methods = start, speedup, slowdown, stop Events = arrive, crash McGraw-Hill 2010 The McGraw-Hill Companies, Inc. All rights reserved. 1-9 Dr. David McDonald Chapter 1 Page 3

.NET 3.5 Framework Environment that allows objects from different languages to operate together, standardizes references to data and objects.net languages all compile (translate) to Microsoft Intermediate Language (MSIL) MSIL runs in the Common Language Runtime (CLR) Programming Languages Visual C#, Visual C++, Visual Basic C# Versions Express Edition, Standard Edition, Professional Edition, Team System McGraw-Hill 2010 The McGraw-Hill Companies, Inc. All rights reserved. 1-10 Solution file A C# application is called a solution and can consist of one or more projects.sln extension Project file Describes project and lists files included.csproj extension Form files.cs,.designer.cs,.resx extensions The Visual Studio environment creates several more files McGraw-Hill 2010 The McGraw-Hill Companies, Inc. All rights reserved. 1-11.NET Framework Three major components Common Language Runtime (CLR) Class Library ASP.NET Integrated Development Environment McGraw-Hill 2010 The McGraw-Hill Companies, Inc. All rights reserved. 1-12 Dr. David McDonald Chapter 1 Page 4

Manages execution of code Integrates components developed in different languages (a.k.a. managed code) Handles errors across languages Provides security Manages storage and destruction of objects (garbage collector) Manages data McGraw-Hill 2010 The McGraw-Hill Companies, Inc. All rights reserved. 1-13 1-13 Stores all classes and interfaces of the.net language Stored in a library known as the.net Framework class library Namespaces sections within the library that contain classes, structures, enumerations, delegates, interfaces Standardized through the Common Language Specifications (CLS).NET Framework Developer s Guide Contains the rules for CLS compliance McGraw-Hill 2010 The McGraw-Hill Companies, Inc. All rights reserved. 1-14 ASP.NET 3.0 is the newest version of Active Server Pages (ASP) Web development environment that compiles applications written in.net compatible languages Uses CLR and managed code features Makes Web development easier by providing development and debugging support for Web applications and Web Services similar to that for Windows applications McGraw-Hill 2010 The McGraw-Hill Companies, Inc. All rights reserved. 1-15 Dr. David McDonald Chapter 1 Page 5

Integrated Development Environment (IDE) Includes various tools Form designer Editor for entering and modifying C# code Compiler Debugger Object Browser Help McGraw-Hill 2010 The McGraw-Hill Companies, Inc. All rights reserved. 1-16 Visual Studio 2008 allows selection of default IDE profile Available with full version of Visual Studio Choose Visual C# Development Settings Text uses the Visual C# settings Settings can be saved for more than one language To switch between the settings for languages: Select Tools/Import and Export Settings Choose Reset all settings McGraw-Hill 2010 The McGraw-Hill Companies, Inc. All rights reserved. 1-17 Select File/New Project New Project Dialog Box Opens Select the Windows Forms Application template Select Visual C# Windows Enter the Project Name McGraw-Hill 2010 The McGraw-Hill Companies, Inc. All rights reserved. 1-18 Dr. David McDonald Chapter 1 Page 6

Toolbox Solution Explorer Properties window Main Document window Each window can be moved, resized, closed, or customized McGraw-Hill 2010 The McGraw-Hill Companies, Inc. All rights reserved. 1-19 Toolbar buttons are shortcuts Each button s command is also a menu selection Select View/Toolbars to display or hide a toolbar Three commonly used toolbars Standard Layout Text Editor McGraw-Hill 2010 The McGraw-Hill Companies, Inc. All rights reserved. 1-20 Use tabs to switch between open documents Items in Document window Form Designer Code Editor Project Designer Database Designer Object Browser McGraw-Hill 2010 The McGraw-Hill Companies, Inc. All rights reserved. 1-21 Dr. David McDonald Chapter 1 Page 7

Design forms for user interface Change size of form using sizing handles or selection border A new default form is added when a new C# application is started McGraw-Hill 2010 The McGraw-Hill Companies, Inc. All rights reserved. 1-22 Solution Explorer window Holds filenames for project files Lists classes referenced Holds name of solution (.sln) file Properties Window Used to set properties for objects in project McGraw-Hill 2010 The McGraw-Hill Companies, Inc. All rights reserved. 1-23 Holds tools to place controls on form Tools vary depending on edition of C# McGraw-Hill 2010 The McGraw-Hill Companies, Inc. All rights reserved. 1-24 Dr. David McDonald Chapter 1 Page 8

Help with specific tasks Selected Topic Help Search Filter Help Index Help Contents Help Favorites Index Results McGraw-Hill 2010 The McGraw-Hill Companies, Inc. All rights reserved. 1-25 Design Time Design user interface (forms) Write code Run Time Testing project Running project Debug Time Run-time errors Pause program execution McGraw-Hill 2010 The McGraw-Hill Companies, Inc. All rights reserved. 1-26 Dr. David McDonald Chapter 1 Page 9