CSC 157 (Blum)1 Hello World. CSC 157 (Blum)2 Start/Programs/Microsoft Visual Studio.NET 2003/Microsoft Visual Studio.NET 2003.

Slides:



Advertisements
Similar presentations
CS0004: Introduction to Programming Visual Studio 2010 and Controls.
Advertisements

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,
CA 121 Intro to Programming Tariq Aziz and Kevin Jones GUI Programming in Visual Studio.NET Chapter 1 Tariq Aziz and Kevin Jones.
CA 121 Intro to Programming Tariq Aziz and Kevin Jones GUI Programming in Visual Studio.NET Chapter 2 Tariq Aziz and Kevin Jones.
Outline Review Visual Basic.NET Environment Review Visual Basic.NET Environment First Visual Basic Planning and Programming First Visual Basic Planning.
Compunet Corporation Programming with Visual Basic.NET GUI Week # 11 Tariq Ibn Aziz.
Chapter 2: The Visual Studio.NET Development Environment Visual Basic.NET Programming: From Problem Analysis to Program Design.
Copyright © 2012 Pearson Education, Inc. Chapter 2 Introduction to Visual C#
1 Introduction to the Visual Studio.NET IDE Powerpoint slides modified from Deitel & Deitel.
1 An Introduction to Visual Basic Objectives Explain the history of programming languages Define the terminology used in object-oriented programming.
JavaScript “Hello World” in Microsoft Visual Studio August 2012.
Microsoft Visual Basic 2010: Reloaded Fourth Edition Chapter One An Introduction to Visual Basic 2010.
2. Introduction to the Visual Studio.NET IDE 2. Introduction to the Visual Studio.NET IDE Ch2 – Deitel’s Book.
Microsoft Visual Basic 2012 CHAPTER TWO Program and Graphical User Interface Design.
Visual Basic Fundamental Concepts. Integrated Development Enviroment Generates startup form for new project on which to place controls. Features toolbox.
Visual Basic 2008 Express Edition The IDE. Visual Basic 2008 Express The Start Page Recent Projects Open an existing project Create a New Project.
Visual Basic Chapter 1 Mr. Wangler.
Lecture 2 Managing Windows OS Introduction to.NET Framework C# & Microsoft Visual Studio.NET 2008.
05/09/ Introducing Visual Basic Sequence Programming.
Hello World In C++ and Microsoft Visual C++. Directions to begin a project 1. Go to All Programs 2. Open Visual Studio C++ 3. Click on New Project 4.
Microsoft Visual Basic 2005: Reloaded Second Edition
CIS 338: Creating ActiveX Controls Dr. Ralph D. Westfall March, 2003.
Introduction to Graphical User Interfaces. Objectives * Students should understand what a procedural program is. * Students should understand what an.
Introduction to Visual Basic. Quick Links Windows Application Programming Event-Driven Application Becoming familiar with VB Control Objects Saving and.
IE 411/511: Visual Programming for Industrial Applications
© 2006 Lawrenceville Press Slide 1 Chapter 3 Visual Basic Interface.
VISUAL C++ PROGRAMMING: CONCEPTS AND PROJECTS Chapter 1B Introduction (Tutorial)
Chapter 3 Introducing Visual Basic.NET. 3.1 Visual Basic.NET Windows Programming -Used to create Windows, Web, and Console applications -Uses predefined.
Chapter 3: Using GUI Objects and the Visual Studio IDE.
Basic Controls & Properties Chapter 2. Overview u VB-IDE u Basic Controls  Command Button  Label  Text Box  Picture Box u Program Editor  Setting.
 Application – another name for a program.  Interface – is what appears on the screen when the application is running.  Program Code – is instructions.
Chapter One An Introduction to Visual Basic 2010 Programming with Microsoft Visual Basic th Edition.
Microsoft Visual Basic 2012 CHAPTER THREE Program Design and Coding.
Project Deployment IT [211 CAP] How to convert your project to a full application.
CSD 340 (Blum)1 Using Visual Studio CSD 340 (Blum)2 Start/Microsoft Visual Studio 2005/Microsoft Visual Studio 2005.
Controls. Adding Controls to Form -You can pick controls from the toolbox. -To add the controls from Toolbox to the Form You have be in design view. -To.
Chapter 2 – Introduction to the Visual Studio .NET IDE
1 Creating Windows GUIs with Visual Studio. 2 Creating the Project New Project Visual C++ Projects Windows Forms Application Give the Project a Name and.
What is Visual Basic.NET? 110 B-1 e.g. a word processor doesn’t do anything until the user clicks on a button, types text... A programming language that.
Vocabulary in VB So Far. Assignment: Used to change the value of an object at run time Used to change the value of an object at run time.
CSC 230 (Blum)1 Visual Basic 2005 Hello World Fall 2005 T. Blum.
Copyright © 2010 Pearson Education, Inc. Publishing as Pearson Addison-Wesley Starting Out with Programming Logic & Design Second Edition by Tony Gaddis.
 2002 Prentice Hall. All rights reserved. 1 Chapter 2 – Introduction to the Visual Studio.NET IDE Outline 2.1Introduction 2.2Visual Studio.NET Integrated.
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.
COMPUTER PROGRAMMING I 3.01 Apply Controls Associated With Visual Studio Form.
CSC 230 (Blum)1 Visual Basic 2005 Hello World Fall 2005 T. Blum.
Visual Basic.Net. Software to Install Visual Studio 2005 Professional Edition (Requires Windows XP Pro) MSDN Library for Visual Studio 2005 Available.
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.
Microsoft Visual C# 2010 Fourth Edition Chapter 3 Using GUI Objects and the Visual Studio IDE.
Chapter 2: The Visual Studio.NET Development Environment Visual Basic.NET Programming: From Problem Analysis to Program Design.
McGraw-Hill/Irwin The Interactive Computing Series © 2002 The McGraw-Hill Companies, Inc. All rights reserved. Microsoft Excel 2002 Using Macros Lesson.
Dive Into® Visual Basic 2010 Express
Visual Basic.NET Windows Programming
Visual Studio 2010 Hello World CSC 230.
Chapter Topics 15.1 Graphical User Interfaces
Chapter 2 – Introduction to the Visual Studio .NET IDE
3.01 Apply Controls Associated With Visual Studio Form
Chapter 2 Visual Basic Interface
Visual Studio 2010 Hello World CSC 230.
Welcome with Ifs CSC 230 (Blum).
CIS16 Application Development Programming with Visual Basic
Hello World in Visual Basic
Building an Application in the Visual Basic .NET Environment
Fonts, TabControl, ListBox
Chapter 15: GUI Applications & Event-Driven Programming
Introduction to Visual Basic 2010
Presentation transcript:

CSC 157 (Blum)1 Hello World

CSC 157 (Blum)2 Start/Programs/Microsoft Visual Studio.NET 2003/Microsoft Visual Studio.NET 2003

CSC 157 (Blum)3 Start Page Tabs: My Profile

CSC 157 (Blum)4 Start Page Tabs: Projects

CSC 157 (Blum)5 New Project Dialog Box

CSC 157 (Blum)6 Name the Project

CSC 157 (Blum)7 Browse for a Location

CSC 157 (Blum)8 Use Look in Drop-down box to select a location for your project

CSC 157 (Blum)9 Click on the Create New Folder button to make a folder for your project

CSC 157 (Blum)10 Enter a Name in the New Folder Dialog Box

CSC 157 (Blum)11 Click Open

CSC 157 (Blum)12 Click OK

CSC 157 (Blum)13 Designing a Form

CSC 157 (Blum)14 Place the mouse over the Toolbox icon to display the Toolbox

CSC 157 (Blum)15 Click on the tack icon to display the Toolbox continually

CSC 157 (Blum)16 Change the programming name of the form by editing the text in the (Name) textbox in the Properties Window Properties Window 

CSC 157 (Blum)17 Right click on the Form icon in the Solution Explorer and choose Rename

CSC 157 (Blum)18 Here we are changing the name of the file that contains the code we will write. It is tradition for it to have the same name as the Form (class). Solution Explorer 

CSC 157 (Blum)19 Right click on project icon in the Solution Explorer and choose Properties.

CSC 157 (Blum)20 Find the newly named file in the Startup object drop-down list, then click OK.

CSC 157 (Blum)21 Click on the form in the design tabpage to bring back its Properties Window, then edit the Text property. The form in design.

CSC 157 (Blum)22 Form The form is like a window. Think of it as a container of the other items belongs to your graphical user interface (GUI). –Technical point: we are creating a form class, usually one must instantiate a specific object of a generic class. But if there is only one form this is done automatically for you.

CSC 157 (Blum)23 A look at what has been generated thus far in Windows Explorer

CSC 157 (Blum)24 Click on the Button icon in the toolbox

CSC 157 (Blum)25 Drag the cursor (it should appear as the button icon and cross hairs) from the upper left to the lower right of the desired position of the button

CSC 157 (Blum)26 Change the button’s (Name) property in the Properties Window

CSC 157 (Blum)27 Controls and Hungarian Notation The button is our first example of a control. Controls are the items placed on a form (usually visible) with which the user interacts. Visual Basic programming typically uses a notation scheme known as Hungarian Notation for naming controls. –The names of controls start with a prefix that describes the type of control. –The rest of the control’s name hints at its purpose in the program. The first letter of the second part of the name is capitalized.

CSC 157 (Blum)28 Edit the textbox corresponding to the Text property of the button.

CSC 157 (Blum)29 Click on the Label icon in the toolbox

CSC 157 (Blum)30 Drag the cursor from the upper left to the lower right of the desired position of the label

CSC 157 (Blum)31 Change the label’s (Name) property in the Properties Window – the Hungarian prefix for label is lbl

CSC 157 (Blum)32 Click on the ellipsis button for the font dialog box

CSC 157 (Blum)33 Use the Font dialog box to change the font size and click OK

CSC 157 (Blum)34 Clear out the text property of the label

CSC 157 (Blum)35 Double click on the Message button

CSC 157 (Blum)36 This open up a FrmHello code tabpage and provides the first and last line of the btnMessage_Click method

CSC 157 (Blum)37 Event Driven Programming We are writing event-driven code. An error is when something happens. Examples include: –The user clicking a button –The program clock reaching a certain value –The system running out of memory allotted to the program –Etc.

CSC 157 (Blum)38 Inside the button’s click event method, start entering the code that will display a message. Type the name of the label and a dot.

CSC 157 (Blum)39 Typing the dot should yield a drop-down list of label properties and methods, double click on the text property.

CSC 157 (Blum)40 Finish typing the assignment statement.

CSC 157 (Blum)41 Assignment statements Assignment statements direct the computer to evaluate the right-hand side and then to set the value of the property on the left-hand side to that value. The right-hand side of the statement in this case is a literal string – that “Hello World”

CSC 157 (Blum)42 Add comments. Comments start with an apostrophe. They do not affect the way the program executes, but help someone to read the code.

CSC 157 (Blum)43 Click on Build/Build Solution

CSC 157 (Blum)44 Click Debug/Start

CSC 157 (Blum)45 The executing program prior to the user’s clicking the button.

CSC 157 (Blum)46 The executing program after the user’s clicking the button.

CSC 157 (Blum)47 Close the program by clicking the  button