Visual Studio 2010 Hello World CSC 230.

Slides:



Advertisements
Similar presentations
Microsoft Word Penguin Research Lesson 1: Typing, Font, Inserting Pictures and Inserting Textboxes.
Advertisements

®® Microsoft Windows 7 Windows Tutorial 3 Personalizing Your Windows Environment.
© by Pearson Education, Inc. All Rights Reserved.
Visual Basic 2010 How to Program. © by Pearson Education, Inc. All Rights Reserved.2.
© by Pearson Education, Inc. All Rights Reserved. continued …
Visual Basic 2010 How to Program Reference: Instructor: Maysoon Bin Duwais slides Visual Basic 2010 how to program by Deitel © by Pearson Education,
 2006 Pearson Education, Inc. All rights reserved Introduction to the Visual C# 2005 Express Edition IDE.
Chapter 31 Visual Basic Controls A Form is a windows-style screen displayed by Visual Basic programs. In a form, a programmer can create objects in a form.
1 Introduction to the Visual Studio.NET IDE Powerpoint slides modified from Deitel & Deitel.
JavaScript “Hello World” in Microsoft Visual Studio August 2012.
1b – Inside Visual Studio Lingma Acheson Department of Computer and Information Science, IUPUI CSCI N331 VB.NET Programming.
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.
Mastering Your Word Processing Skills
Microsoft Visual Basic 2005 CHAPTER 12 Cell Phone Applications and Web Services.
Visual Basic 2008 Express Edition The IDE. Visual Basic 2008 Express The Start Page Recent Projects Open an existing project Create a New Project.
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.
PowerPoint Basics (for Macs) 1. Before you start your project, you need: Completed project storyboard. Files with images, sound, or video already saved.
IE 411/511: Visual Programming for Industrial Applications
© 2006 Lawrenceville Press Slide 1 Chapter 3 Visual Basic Interface.
T U T O R I A L  2009 Pearson Education, Inc. All rights reserved. 1 2 Welcome Application Introducing the Visual Basic 2008 Express Edition IDE.
A First Look At Microsoft Visual Basic Lesson 1. What is Microsoft Visual Basic? Microsoft Visual Basic is a software development tool, which means it.
 2009 Pearson Education, Inc. All rights reserved Introduction to the Visual Basic Express 2008 IDE.
 2009 Pearson Education, Inc. All rights reserved Dive Into ® Visual C# 2008 Express.
Microsoft Visual Basic 2005 ENRICHMENT CHAPTER Visual Studio Tools for Office.
Basic Controls & Properties Chapter 2. Overview u VB-IDE u Basic Controls  Command Button  Label  Text Box  Picture Box u Program Editor  Setting.
T U T O R I A L  2009 Pearson Education, Inc. All rights reserved. 1 3 Welcome Application Introduction to Visual Programming.
Using Microsoft Visual Studio 2005 Original by Suma Rao Revised by John G. McMahon ( 9/6/2008 )
 2006 Pearson Education, Inc. All rights reserved Introduction to the Visual C# 2005 Express Edition IDE.
CSD 340 (Blum)1 Using Visual Studio CSD 340 (Blum)2 Start/Microsoft Visual Studio 2005/Microsoft Visual Studio 2005.
Web Development in Microsoft Visual Studio Slide 2 Lecture Overview How to create a first ASP.NET application.
Chapter 2 – Introduction to the Visual Studio .NET IDE
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.
CSC 157 (Blum)1 Hello World. CSC 157 (Blum)2 Start/Programs/Microsoft Visual Studio.NET 2003/Microsoft Visual Studio.NET 2003.
 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.
T U T O R I A L  2009 Pearson Education, Inc. All rights reserved. 1 4 Designing the Inventory Application Introducing TextBox es and Button s.
This is how you invoke the Microsoft Visual Studio 2010 Software. All Programs >> Microsoft Visual Studio 2010.
Copyright (c) 2003 by Prentice Hall Provided By: Qasim Al-ajmi Chapter 2 Introduction to Visual Basic Programming Visual Basic.NET.
Visual Basic.NET Comprehensive Concepts and Techniques Chapter 3 Building an Application in the Visual Basic.NET Environment.
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.
Addison Wesley is an imprint of © 2011 Pearson Addison-Wesley. All rights reserved. Chapter 2 Creating Applications with Visual Basic.
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.
COMPUTER PROGRAMMING I 3.01 Apply Controls Associated With Visual Studio Form.
 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.
 You won’t write a single line of program code.  Instead, you’ll use visual programming techniques.  Visual Studio processes your actions (such as mouse.
Dive Into® Visual Basic 2010 Express
Windows Tutorial 3 Personalizing Your Windows Environment
Chapter 2: The Visual Studio .NET Development Environment
JavaScript “Hello World” in Microsoft Visual Studio 2013
Chapter 2 – Introduction to the Visual Studio .NET IDE
3.01 Apply Controls Associated With Visual Studio Form
JavaScript “Hello World” in Microsoft Visual Studio 2012
How to design a Windows Forms application
3.01 Apply Controls Associated With Visual Studio Form
Introduction to the Visual C# 2005 Express Edition IDE
Chapter 3 Fundamentals of Programming in Visual Basic 3
Chapter 2 Visual Basic Interface
Visual Studio 2010 Hello World CSC 230.
Chapter 2 – Introduction to the Visual Studio .NET IDE
Overview of the IDE Visual Studio .NET is Microsoft’s Integrated Development Environment (IDE) for creating, running and debugging programs (also.
Introduction to Visual Basic 2010
Presentation transcript:

Visual Studio 2010 Hello World CSC 230

Go to Start/All Programs/Microsoft Visual Studio 2010/Microsoft Visual Studio 2010 CSC 230

Choose a default environment setting and click Start (I like General because I use Studio for both Visual Basic desktop and web development) CSC 230

This takes awhile the first time you are working at a particular computer CSC 230

Click on New Project on the start Page or go to File/New/Project CSC 230

Use the New Project dialog box to give the project a name CSC 230

Use the Browse button next to Location to determine where your project will be saved. CSC 230

After establishing a name and location click OK CSC 230

Mouse over the Toolbox icon on the left-hand side, then click on the pin icon to lock in place the Tool box that slides out in CSC 230

Determine how to sort the Properties Window on the lower right. The sorting choices are categorized and alphabetical. Currently alphabetical is selected. In addition to properties one can also look at “events” but for now we are interested in properties. CSC 230

Change the (Name) property of the Form by typing in the textbox. A description of the selected property appears at the bottom of the Properties Window. CSC 230

Change the Text property of the form. CSC 230

In the Solution Explorer (upper right) right click on the Form1 In the Solution Explorer (upper right) right click on the Form1.vb file name and change the name of the file but not the extension. CSC 230

Select the Button icon from the Toolbox (left hand) and drag (an instance of) a button onto the form. CSC 230

With the button highlighted, go to the Properties Window and change the button’s (Name) property CSC 230

Highlight a label from the Toolbox and drag it onto the form CSC 230

With the label on the form highlighted change the (Name) property of the label in the Properties Window. CSC 230

Set the label’s AutoSize property to False. The label will now be a fixed size on the form as opposed to adjusting to the size of the text it contains. CSC 230

Change the label’s BorderStyle property to FixedSingle CSC 230

Change the label’s TextAlign property to MiddleCenter CSC 230

Click on the ellipsis button next to the Font Property, and use the dialog box to change the Font Size property. CSC 230

Empty out the label’s Text property. CSC 230

Button Click Routine 1: Double click on the button on the form Creates btnShowMessage_Click subroutine as seen below in “Code View”. Controls have more than one event associated with them. This approach picks out the “default” event. CSC 230

Button Click Routine 2: Go to Code View in the Solution Explorer (upper right); use the left drop-down list to choose the button and the right drop-down list to choose the Click event CSC 230

Button Click Routine 3: Highlight the button on the form, go to the Properties Window and choose the Event list and double click on the Click event. CSC 230

Write a comment about the subroutine Write a comment about the subroutine. Comments start with a single quote and under default setting show up in green A comment does not affect in any way how the program will execute. It’s there to offer some explanation to any human reader of the code. CSC 230

Within the subroutine type the name of the label control followed by a dot; that triggers a drop-down list to appear. Choose “Text” or type “Text” CSC 230

Type an equal sign followed by some text inside double quotes CSC 230

SAVE! CSC 230

RUN! CSC 230

Result of running program Before button is clicked After button is clicked CSC 230