BIL527 – Bilgisayar Programlama I Introduction 1.

Slides:



Advertisements
Similar presentations
Microsoft Office SharePoint Portal Server 2007 Introduction to InfoPath Forms Services Daryl L. Rudolph.
Advertisements

© by Pearson Education, Inc. All Rights Reserved.
Visual Basic 2010 How to Program. © by Pearson Education, Inc. All Rights Reserved.2.
Visual Basic 2010 How to Program Reference: Instructor: Maysoon Bin Duwais slides Visual Basic 2010 how to program by Deitel © by Pearson Education,
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
Tahir Nawaz Visual Programming C# Week 2. What is C#? C# (pronounced "C sharp") is an object- oriented language that is used to build applications for.
Creating a Console Application with Visual Studio
Object Oriented Software Development 1. Introduction to C# and Visual Studio.
2. Introduction to the Visual Studio.NET IDE 2. Introduction to the Visual Studio.NET IDE Ch2 – Deitel’s Book.
Getting Started Example ICS2O curriculum
Microsoft Visual Basic 2012 CHAPTER ONE Introduction to Visual Basic 2012 Programming.
Microsoft Visual Basic 2005 CHAPTER 1 Introduction to Visual Basic 2005 Programming.
1 ENG236: ENG236: C++ Programming Environment (2) Rocky K. C. Chang THE HONG KONG POLYTECHNIC UNIVERSITY.
Creating and Running Your First C# Program Telerik Software Academy Telerik School Academy.
CS 2340: Programming in VB Instructor: Dr. Qi Yang Office: 213 Ullrich Phone: YangQ 1.
McGraw-Hill© 2007 The McGraw-Hill Companies, Inc. All rights reserved. 1-1.
A First Program Using C#
BIL528 – Bilgisayar Programlama II Introduction 1.
1 Introduction to.NET Framework. 2.NETFramework Internet COM+ Orchestration Orchestration Windows.NET Enterprise ServersBuildingBlockServices Visual Studio.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.
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
Lecture Set 1 Part B: Understanding Visual Studio and.NET – Structure and Terminology 1/16/ :04 PM.
Creating and Running Your First C# Program Svetlin Nakov Telerik Corporation
CSC 494/594 C# and ASP.NET Programming. C# 2012 C# Object-oriented language with syntax that is similar to Java.
Introduction and Course Information. Content Course Presentation Muzaffer DOĞAN - Anadolu University2.
CS Tutorial 1 Getting Started with Visual Studio 2012 (Visual Studio 2010 are no longer available on MSDNAA, please choose Visual Studio 2012 which.
IE 411/511: Visual Programming for Industrial Applications
All 300/400 Level CS Major Courses Tutoring Location: SEC 3433 Sign up or walk-in Introduction2-1.
Instructor: Tina Tian. About me Office: RLC 203A Office Hours: Wednesday 1:30 - 4:30 PM or .
Lecture 1 Programming in C# Introducing C# Writing a C# Program.
Web Services Week 2 Aims: Getting started with creating simple C# applications within Visual Studio.NET Objectives: –An introduction to the syntax of C#.NET.
Getting Started with Microsoft Visual Studio,.NET and C# Jim Warren, COMPSCI 280 S Enterprise Software Development.
2. Introduction to the Visual Studio.NET IDE. Chapter Outline Overview of the Visual Studio.NET IDE Overview of the Visual Studio.NET IDE Menu Bar and.
Integrated Development Environment (IDE)
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.
Introduction to the Visual Studio.NET IDE (LAB 1 )
Introduction In The Name Of Allah, The Beneficent, The Merciful.
Introduction It is developed to create software applications. It is a tool for developers of any program that uses both basic and expert settings. It.
Languages and IDE (Integrated Development Environment)
Applied Computing Technology Laboratory QuickStart C# Learning to Program in C# Amy Roberge & John Linehan November 7, 2005.
Rajiv and Shipra Introduction to.NET (asp.net,c#,vb)
BIT 285: ( Web) Application Programming Lecture 15: Tuesday, February 24, 2015 Microsoft Azure Instructor: Craig Duckett.
Module 1: Getting Started. Introduction to.NET and the.NET Framework Exploring Visual Studio.NET Creating a Windows Application Project Overview Use Visual.
Introduction and Course Information. Content Course Presentation Creating a Sample Project Muzaffer DOĞAN - Anadolu University2.
PRIOR TO WEB SERVICES THE OTHER TECHNOLOGIES ARE:.
Microsoft .NET A platform that can be used for building and running windows and web applications such that the software is platform and device-independent.
1 Getting Started with C++ Part 1 Windows. 2 Objective You will be able to create, compile, and run a very simple C++ program on Windows, using Microsoft.
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.
COMPUTER III. Fundamental Concepts of Programming Control Structures Sequence Selection Iteration Flowchart Construction Introduction to Visual Basic.
Introduction to C# Programming with Microsoft.NET AY
Lecture Set 1 Part B: Understanding Visual Studio and.NET – Structure and Terminology 1/16/ :04 PM.
CMPT 238 Data Structures Instructor: Tina Tian. General Information Office: RLC 203A Office Hour: Tue and Fri 12:30 - 2:00PM.
Microsoft Visual C# 2010 Fourth Edition Chapter 3 Using GUI Objects and the Visual Studio IDE.
A Detailed Introduction To Visual Studio.NET CRB Tech ReviewsCRB Tech Reviews introduces you to the world of Visual.
BIM313 – Advanced Programming Techniques Course Information 1.
CMPT 201 Computer Science II for Engineers
Introduction ITEC 420.
Dive Into® Visual Basic 2010 Express
Chapter 2: The Visual Studio .NET Development Environment
Computer Software: Programming
Introduction to Visual Basic 2008 Programming
Module 0: Introduction Chapter 2: Getting Started
Module 1: Getting Started
Social Media And Global Computing Introduction to Visual Studio
Understanding the Visual IDE
IS 135 Business Programming
Presentation transcript:

BIL527 – Bilgisayar Programlama I Introduction 1

Contents Information about the course Visual Studio 2012 IDE Creating Applications – Console Application – Windows Forms Application – ASP.NET Web Page C# and the.NET Framework 2

Course Information 3

About the course Lecturer:Muzaffer DOĞAN Office Phone:6562 Web Page: Teaching Assistant:--- Course Web Page: Class Hours and Location:14:00-17:00, WED on B5 Office Hours:14:00-17:00, FRI Prerequisites:None Textbooks:Beginning Microsoft Visual C# 2012, Karli Watson, Christian Nagel et al., Wiley Publishing, Illustrated C# 2012, Daniel Solis, Apress,

Course Contents Week 1Visual Studio 2012 IDE, C# and the.NET Framework, Creating Console Applications, Windows Forms Projects, and ASP.NET Web Pages Week 2Comments, Variables, Expressions, Operators, Namespaces Week 3Flow Control, Binary Operators, Loops, Arrays Week 4Type Conversions, Enumerations, Structs, Arrays Week 5String Operations, Functions, Delegates Week 6First Midterm 5

Course Contents (continued) Week 7Debugging, Exception Handling Week 8Object-Oriented Programming, Interfaces, Properties Week 9Collections, Indexers, Iterators, Operator Overloading Week 10Sorting, Generics, Events Week 11Second Midterm Week 12File Operations Week 13Asynchronous Programming Week 14Final Exam 6

Grading Plan 1 st MT: 20%, 2 nd MT: 20%, Homework: 20%,Final: 40%. Curve will be applied to the grades If your grade is below 80%, you cannot get the grade AA, but it is not certain that if you pass 80% then you get AA. If your grade is below 35%, you certainly fail, but this does not mean that you’ll get at least DD if you pass 35%. 7

Sample Grading Plan Grade Letter Grade ≥ 80AA ≥ 75AB ≥ 70BA ≥ 65BB ≥ 60BC Grade Letter Grade ≥ 55CB ≥ 50CC ≥ 45CD ≥ 40DC ≥ 35DD < 35FF 8

Attendances You don’t have to attend the classes but recent experiences show that the students who attend the classes are more successful All students are responsible for visiting the website of the course at least two times in each week Announcements, assignments, grades, and project subjects will be published on the website. 9

Supplementary Software In this course, you’ll need Visual Studio 2012 software You can download it from a shared folder as explained in page You can login to the website using your Anadolu account. If you have problems in logging in, please inform me. 10

Setting the Visual C# Settings 11

Visual C# Keyboard Settings After installing Visual Studio 2012, select the Visual C# Settings from the Default Collection of Settings window. This sets the keyboard commands and the user interface for the C# environment. – Run: Ctrl-F5, Debug: F5, Build: Ctrl-Shift-B, etc. – New Website command in the Start Page if you select Web Development settings. If you miss the window, or select another setting, then select the command Import and Export Settings from the Tools menu. 12

13

14

15

16

Creating a Console Application 17

18

19

20

21 Write the code and press Ctrl-F5

22

Creating a Windows Forms Application 23

24

25

26 Drag & drop a label and button onto the form

27 Double-click the button

28 Write the code and press Ctrl-F5

29 Click the button

Creating an ASP.NET Web Page 30

31 Do NOT select File -> New -> Project -> ASP.NET Web Forms Application

32

33 Right-click the project name and select Add -> Add New Item (equivalently: Add -> Web Form)

34

35 Switch to Design View

36 Put a Label, press the Enter key, and put a Button

37 Double-click the button

38 Write the code and press Ctrl-F5

39 Click the button

40

Conclusion You can use C# to create several types of applications Creating a Windows Forms Application and an ASP.NET Application are similar You can also create mobile applications in C# (for only Windows Mobile devices) You can use a powerful IDE, Visual Studio 2012, to develop applications (Express edition of Visual Studio is free of charge) 41

.NET Framework Microsoft’s platform to develop applications It may run on several operating systems – Mono on Linux and Mac OS –.NET Compact Framework on PDAs and smartphones It supports several types of applications – Windows applications, web applications, web services, mobile applications, etc. It supports several programming languages – C#, C++, Visual Basic, Jscript, COBOL, Java, Delphi, etc. 42

What’s in the.NET Framework Library of codes that you use from your client language (C#, VB, etc.) using OOP techniques.NET Common Language Runtime (CLR) executes.NET applications (similar to JRE) The codes are compiled into Common Intermediate Language (CIL) codes (like.class files in Java) – CIL codes are independent of the OS Just-in-time (JIT) compiler compiles the CIL codes to native code of the OS – JIT compiler compiles the CIL codes only when it is needed 43

Managed Code Code written using the.NET Framework is managed It means that the CLR looks after your applications by managing memory, handling security, etc. In C#, you can write only managed codes In C++, you can write both managed and unmanaged codes 44

Garbage Collection In unmanaged codes, the programmer have to manage the memory so that all allocated memory spaces are freed at the end of the program But in managed codes, memory allocation and deallocation are managed by the CLR. This concept is called garbage collection.NET garbage collection works periodically and deallocates memory spaces that are no longer needed 45

C# An evolution of the C and C++ languages Created by Microsoft specifically to work with the.NET platform Designed to incorporate many of the best features from other languages, while clearing up their problems 46

Visual Studio 2012 A powerful integrated development environment (IDE) Automates the steps required to compile source code Intelligently detect errors and suggest code where appropriate as you are typing (Intellisense) Includes designers, enabling simple drag&drop design of UI elements Includes starter projects Enables deployment Enables debugging etc. 47

Visual Studio Versions Visual Studio Professional Visual Studio Premium Visual Studio Ultimate Visual Studio Express Edition: Free, but some features are absent Visual C# Express: Contains only C# Visual Web Developer Express: Contains only web application tools 48

Visual Studio Solutions You create solutions in Visual Studio Solutions contain projects Solutions can contain multiple projects – This enables you to work on shared code 49

50 Solution Explorer Properties Window Toolbox Designer

51 Source Code Solution Project Source Files