Neal Stublen Overview of.NET Windows Applications Microsoft Windows OS / Intel Platform Windows Application File SystemNetworkDisplay.

Slides:



Advertisements
Similar presentations
PowerBuilder.NET Guided Tour. PowerBuilder A New PowerBuilder IDE for.NET Development.
Advertisements

Windows Programming 1 Part 1 dbg --- Getting Acquainted with Visual Studio.NET and C#
© by Pearson Education, Inc. All Rights Reserved.
Visual Basic 2010 How to Program. © by Pearson Education, Inc. All Rights Reserved.2.
Chapter 6 Multiform Projects Copyright © 2011 by The McGraw-Hill Companies, Inc. All Rights Reserved. McGraw-Hill.
Using Visual Basic 6.0 to Create Web-Based Database Applications
C# Programming: From Problem Analysis to Program Design1 Creating Your Own Classes C# Programming: From Problem Analysis to Program Design 3rd Edition.
Introduction to the C# Programming Language for the VB Programmer.
Chapter 2: The Visual Studio.NET Development Environment Visual Basic.NET Programming: From Problem Analysis to Program Design.
1 An Introduction to Visual Basic Objectives Explain the history of programming languages Define the terminology used in object-oriented programming.
Creating and Running Your First C# Program Svetlin Nakov Telerik Corporation
Platforms and tools for Web Services and Mobile Applications Introduction to C# Bent Thomsen Aalborg University 3rd and 4th of June 2004.
Chapter 1 Introduction to Programming and C# Programming in C#.NET © 2003 by The McGraw-Hill Companies, Inc. All rights reserved.
Microsoft Visual Basic 2005 CHAPTER 8 Using Procedures and Exception Handling.
Overview of Microsoft.Net and Vb.Net ITSE 2349 Spring 2002 Material from Microsoft.Net an Overview for ACC faculty by Stuart Laughton and Introduction.
1 Chapter One A First Program Using C#. 2 Objectives Learn about programming tasks Learn object-oriented programming concepts Learn about the C# programming.
McGraw-Hill© 2007 The McGraw-Hill Companies, Inc. All rights reserved. 1-1.
A First Program Using C#
Hands-on Introduction to Visual Basic.NET Programming Right from the Start with Visual Basic.NET 1/e 6.
Microsoft Visual Basic 2012 Using Procedures and Exception Handling CHAPTER SEVEN.
NOTE: To change the image on this slide, select the picture and delete it. Then click the Pictures icon in the placeholder to insert your own image. WEB.
Module 1: Introduction to C# Module 2: Variables and Data Types
11 Getting Started with C# Chapter Objectives You will be able to: 1. Say in general terms how C# differs from C. 2. Create, compile, and run a.
Microsoft Visual Basic 2005: Reloaded Second Edition
Creating and Running Your First C# Program Svetlin Nakov Telerik Corporation
Lesley Bross, August 29, 2010 ArcGIS 10 add-in glossary.
CSC 494/594 C# and ASP.NET Programming. C# 2012 C# Object-oriented language with syntax that is similar to Java.
Neal Stublen Class Objectives  Develop an understanding of the.NET Framework  Gain proficiency using Visual Studio  Begin learning.
Microsoft Visual Basic 2008 CHAPTER 8 Using Procedures and Exception Handling.
Using Visual Basic 6.0 to Create Web-Based Database Applications
Teacher: Ms. Olifer MICROSOFT VISUAL STUDIO 2010: PROPERTIES OF WINDOWS FORM OBJECT.
Virtual techdays INDIA │ Nov 2010 Developing Office Biz Application using WPF on Windows 7 Sarang Datye │ Sr. Consultant, Microsoft Sridhar Poduri.
Lecture Set 2 Part B – Configuring Visual Studio; Configuration Options and The Help System (scan quickly for future reference)
Lecture Set 1 Part C: Understanding Visual Studio and.NET – Applications, Solutions, Projects (no longer used – embedded in Lecture Set 2A)
Week 1: THE C# LANGUAGE Chapter 1: Variables and Expressions ➤ Included in Visual Studio.NET ➤ What the.NET Framework is and what it contains ➤ How.NET.
NOTE: To change the image on this slide, select the picture and delete it. Then click the Pictures icon in the placeholder to insert your own image. WEB.
Chapter One An Introduction to Visual Basic 2010 Programming with Microsoft Visual Basic th Edition.
Lecture Set 2 Part A: Creating an Application with Visual Studio – Solutions, Projects, Files.
1 Chapter Eleven Handling Events. 2 Objectives Learn about delegates How to create composed delegates How to handle events How to use the built-in EventHandler.
McGraw-Hill © 2009 The McGraw-Hill Companies, Inc. All rights reserved. Chapter 6 Multiform Projects.
Visual Basic.NET BASICS Lesson 1 A First Look at Microsoft Visual Basic.NET.
Applications Development
Microsoft Visual Basic 2005 BASICS Lesson 1 A First Look at Microsoft Visual Basic.
PROGRAMMING IN VISUAL BASIC.NET VISUAL BASIC PROGRAMMING FUNDAMENTALS Bilal Munir Mughal 1 Chapter-8.
Visual Basic for Application - Microsoft Access 2003 Programming applications using Objects.
Hands-on Introduction to Visual Basic.NET Programming Right from the Start with Visual Basic.NET 1/e 6.
Object Oriented Software Development 4. C# data types, objects and references.
Microsoft Visual Basic 2008: Reloaded Third Edition Chapter One An Introduction to Visual Basic 2008.
Copyright (c) 2003 by Prentice Hall Provided By: Qasim Al-ajmi Chapter 2 Introduction to Visual Basic Programming Visual Basic.NET.
Object-Oriented Application Development Using VB.NET 1 Chapter 2 The Visual Studio.NET Development Environment.
Lecture Set 2 Part A: Creating an Application with Visual Studio – Solutions, Projects, Files 8/10/ :35 PM.
INTRODUCTION CHAPTER #1 Visual Basic.NET. VB.Net General features It is an object oriented language  In the past VB had objects but focus was not placed.
Visual Basic.Net. Software to Install Visual Studio 2005 Professional Edition (Requires Windows XP Pro) MSDN Library for Visual Studio 2005 Available.
Creating New Forms Projects can appear more professional when using different windows for different types of information. Select Add Windows Form from.
IE 411/511: Visual Programming for Industrial Applications Lecture Notes #2 Introduction to the Visual Basic Express 2010 Integrated Development Environment.
 2002 Prentice Hall. All rights reserved. 1 Introduction to the Visual Studio.NET IDE Outline Introduction Visual Studio.NET Integrated Development Environment.
 2007 Pearson Education, Inc. All rights reserved Introduction to the Visual Basic Express 2005 IDE.
Chapter 2: The Visual Studio.NET Development Environment Visual Basic.NET Programming: From Problem Analysis to Program Design.
D OTNET ONLINE TRAINING. DOTNET Online Training Course Content : Introduction to.Net Online Training NET FUNDAMENTALS Why Dot Net? The Dot Net initiative.
Chapter 2: The Visual Studio .NET Development Environment
© 2016, Mike Murach & Associates, Inc.
C# and the .NET Framework
Using Procedures and Exception Handling
Lecturer: Mukhtar Mohamed Ali “Hakaale”
© 2016, Mike Murach & Associates, Inc.
Hands-on Introduction to Visual Basic .NET
CIS16 Application Development – Programming with Visual Basic
Tonga Institute of Higher Education
C# and ASP.NET Programming
Presentation transcript:

Neal Stublen

Overview of.NET

Windows Applications Microsoft Windows OS / Intel Platform Windows Application File SystemNetworkDisplay

.NET Applications.NET Framework Class Libraries Common Language Runtime (CLR).NET Application (or "Assembly") Non-Microsoft OS? / Non-Intel Platform? Microsoft Windows OS / Intel Platform File SystemNetworkDisplay

C#,.NET, and Windows C# Source Files.NET "Assembly" (MSIL) C# Compiler.NET "Assembly" (MSIL) CLR "Native" Code

How does C# compare?  VB.NET, F#, Managed VC++ are other.NET languages. They all compile into MSIL assemblies that run on the.NET CLR.  Java has many similarities, but the.NET class library is different from the Java support classes.  Might be considered a "safer" version of C++.

Using Visual Studio

Visual Studio Summary  Open/close a project/solution  Project A collection of files that are used to generate an application or class library.csproj file extention  Solution A collection of projects.sln file extension  Projects target a specific version of the.NET Framework

Visual Studio Summary  Menus and toolbars can be customized  Solution Explorer manages project files  Form Designer allows us to create and modify forms  Controls are added to a form using the Toolbox  Properties change the appearance and/or function of a form or control

Visual Studio Summary  Tabbed windows can be docked just about anywhere  Tabbed windows can be floating or docked  Tabbed windows can be pinned or hidden  Code Editor allows you to edit source code  Editing window can be split into two panes

Visual Studio Summary  Settings can be imported and exported  We will work with WinForms applications in this class.

Designing a Form

Form Design Summary  Control Toolbox  Tab Order  Properties Window Name, Text Enabled, ReadOnly, TabOrder, TabStop, TextAlign AcceptButton, CancelButton, StartPosition  Access keys (&)  Document Outline View  Renaming and saving files

Form Exercise  Create a project named "InvoiceTotal" in your S: folder  Reproduce the following form:  Consider tab order, access keys, etc.

Object Oriented Programming

Object-Oriented Programming .NET represents everything as an "object"  What objects can we identify in our InvoiceTotal application? Forms, Controls  Objects are made up of data and a set of functions that act on that data  What data would be stored in the InvoiceTotal form and controls? Position, Text  What functions might use that data?

Objects and Classes  An object is represented by a "class"  A class has “member” data Variables  A class has “member” functions Methods

A class Definition class Counter { };

A class Definition class Counter { // “class” is a keyword that tells the // compiler we are defining a new type of // object. };

The class Name (or Type) class Counter { // “Counter” is the name of the new class // type. };

Member Variables class Counter { private int mValue; // We declare member variables that will // hold data for the class. };

Member Visibility class Counter { private int mValue; // “private” is a keyword that tells the // compiler the class member is not visible // to other objects. };

Member Type class Counter { private int mValue; // “int” is a built-in type that tells the // compiler we are defining an integer // value. };

Member Name class Counter { private int mValue; // “mValue” is the name we will use when // referring to this data member. };

Member Initializer class Counter { private int mValue = 0; // (Optional) We can assign an initial value to // the data member. };

A class Constructor class Counter { private int mValue; // Constructor public Counter(int inInitialValue) { mValue = inInitialValue; } };

Constructor Visibility class Counter { private int mValue; // Constructor public Counter(int inInitialValue) { mValue = inInitialValue; } // “public” is a keyword that tells the // compiler the class member is visible to // other objects. };

Constructor Name class Counter { private int mValue; // Constructor public Counter(int inInitialValue) { mValue = inInitialValue; } // “Counter” repeats the class name, which // tells the compiler we are defining a // constructor for the class. };

Constructor Parameter class Counter { private int mValue; // Constructor public Counter(int inInitialValue) { mValue = inInitialValue; } // “int inInitialValue” is a parameter of // the constructor. It is used to set the // initial state of the object. };

Constructor Body class Counter { private int mValue; // Constructor public Counter(int inInitialValue) { mValue = inInitialValue; } // The body of the constructor assigns // initial values to any data members of // the class. };

Assignment Operator class Counter { private int mValue; // Constructor public Counter(int inInitialValue) { mValue = inInitialValue; } // “=” is an assignment operator that assigns // a value to a variable. };

A class Method class Counter { private int mValue; // Constructor public Counter(int inInitialValue) { mValue = inInitialValue; } // Increment the counter by one. public int Increment() { return ++mValue; } };

Method Visibility class Counter { private int mValue; // Constructor public Counter(int inInitialValue) { mValue = inInitialValue; } // Increment the counter by one. public int Increment() { return ++mValue; } };

Method Return Type class Counter { private int mValue; // Constructor public Counter(int inInitialValue) { mValue = inInitialValue; } // Increment the counter by one. public int Increment() { return ++mValue; } };

Method Name class Counter { private int mValue; // Constructor public Counter(int inInitialValue) { mValue = inInitialValue; } // Increment the counter by one. public int Increment() { return ++mValue; } };

Method Body class Counter { private int mValue; // Constructor public Counter(int inInitialValue) { mValue = inInitialValue; } // Increment the counter by one. public int Increment() { return ++mValue; } };

Prefix/Postfix Operators class Counter { private int mValue; // Constructor public Counter(int inInitialValue) { mValue = inInitialValue; } // Increment the counter by one. public int Increment() { return ++mValue; } };

Code Comments class Counter { private int mValue; // Constructor public Counter(int inInitialValue) { mValue = inInitialValue; } // Increment the counter by one. public void Increment() { mValue = mValue + 1; } }; Counter myCounter = new Counter(0);

Instantiating a class class Counter {... }; Counter myCounter = new Counter(0); Counter yourCounter = new Counter(10);

Instantiating a class class Counter {... }; Counter myCounter = new Counter(0); Counter yourCounter = new Counter(10); // “new” is a keyword that tells the compiler // we want to create an instance of the class. // We have created two instances of the Counter // class.

Instantiating a class class Counter {... }; Counter myCounter = new Counter(0); myCounter.Increment(); // We call a method by using the “.” operator on // a class instance. // All statements are terminated by a semi-colon.

A Closer Look at Our Form

Form Summary  The Code Editor allows us to expand and collapse blocks of code.  Forms are just objects  Forms are created by making changes to the object’s properties and calling the object’s methods.  The Designer just adds code to the form’s class.

Making the Form Do Something

Event Summary  Forms and controls dispatch events  Event handlers respond to events

Suggestions  Install Visual Studio Visual Studio Express 2013 for Windows Desktop  Projects at end of each chapter  Experiment