Visual Studio.

Slides:



Advertisements
Similar presentations
Information System Design Lab 5&6. User Interface Design.
Advertisements

CS0004: Introduction to Programming Visual Studio 2010 and Controls.
CHAPTER TWO Creating Simple Visual Basic.NET Windows Applications.
© 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 1 Introduction to Visual Basic 2010 Copyright © 2011 by The McGraw-Hill Companies, Inc. All Rights Reserved. McGraw-Hill.
Chapter 2: The Visual Studio.NET Development Environment Visual Basic.NET Programming: From Problem Analysis to Program Design.
1 Introduction to the Visual Studio.NET IDE Powerpoint slides modified from Deitel & Deitel.
Chapter 2 User Interface Design Copyright © 2011 by The McGraw-Hill Companies, Inc. All Rights Reserved. McGraw-Hill.
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.
Chapter 2 User Interface Design Copyright © 2011 by The McGraw-Hill Companies, Inc. All Rights Reserved. McGraw-Hill.
IE 411/511: Visual Programming for Industrial Applications
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.
Program Design and Coding
Microsoft Visual Basic 2012 CHAPTER THREE Program Design and Coding.
Microsoft Visual Basic 2010 CHAPTER THREE Program Design and Coding.
T U T O R I A L  2009 Pearson Education, Inc. All rights reserved. 1 3 Welcome Application Introduction to Visual Programming.
Irwin/McGraw-Hill Copyright© 2000 by the McGraw-Hill Companies, Inc. PowerPoint® Presentation to accompany prepared by James T. Perry University of San.
2-1 aslkjdhfalskhjfgalsdkfhalskdhjfglaskdhjflaskdhjfglaksjdhflakshflaksdhjfglaksjhflaksjhf.
Visual Basic.NET BASICS Lesson 1 A First Look at Microsoft Visual Basic.NET.
 2006 Pearson Education, Inc. All rights reserved Introduction to the Visual C# 2005 Express Edition IDE.
Chapter 2 – Introduction to the Visual Studio .NET IDE
Microsoft Visual Basic 2005 BASICS Lesson 1 A First Look at Microsoft Visual Basic.
More User Interface Controls User interface controls are located in the toolbox. Click the +/- signs to open/ close the different tabs of the tollbox.
2-1 aslkjdhfalskhjfgalsdkfhalskdhjfglaskdhjflaskdhjfglaksjdhflakshflaksdhjfglaksjhflaksjhf.
McGraw-Hill © 2009 The McGraw-Hill Companies, Inc. All rights reserved. Chapter 2 User Interface Design.
 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.
McGraw-Hill © 2009 The McGraw-Hill Companies, Inc. All rights reserved. Introduction to Visual Basic 2008 Chapter 1.
Object-Oriented Application Development Using VB.NET 1 Chapter 2 The Visual Studio.NET Development Environment.
COMPUTER PROGRAMMING I 3.01 Apply Controls Associated With Visual Studio Form.
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 Basic 2012: Reloaded Fifth Edition Chapter One An Introduction to Visual Basic 2012.
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
Chapter 1: An Introduction to Visual Basic .NET
DDC 3363 Programming III Main Reference
Visual Basic.NET Windows Programming
Chapter 2: The Visual Studio .NET Development Environment
DDC 3363 – Programming III Main Reference
Chapter 1: An Introduction to Visual Basic 2015
Chapter 2 – Introduction to the Visual Studio .NET IDE
3.01 Apply Controls Associated With Visual Studio Form
Program and Graphical User Interface Design
1. Introduction to Visual Basic
How to design a Windows Forms application
Visual programming Chapter 1: Introduction
3.01 Apply Controls Associated With Visual Studio Form
Introduction to the Visual C# 2005 Express Edition IDE
Using Procedures and Exception Handling
Program and Graphical User Interface Design
Visual Basic.
Chapter 2 – Introduction to the Visual Studio .NET IDE
CIS16 Application Development Programming with Visual Basic
Windows xp PART 1 DR.WAFAA SHRIEF.
Brief description on how to navigate within this presentation (ppt)
Programming In Visual Basic.NET
Chapter 2 User Interface Design
Overview of the IDE Visual Studio .NET is Microsoft’s Integrated Development Environment (IDE) for creating, running and debugging programs (also.
Presentation transcript:

Visual Studio

Introduction Visual Studio is Microsoft’s Integrated Development Environment (IDE) for creating, running and debugging apps (also called applications) written in various .NET programming languages. Multiple-project solutions are for large-scale apps. Most apps we create consist of a solution containing a single project.

Overview of the Visual Studio IDE A Windows Forms app executes within a Windows operating system (such as Windows 7, Windows 8, and Windows 10) and typically has a graphical user interface (GUI)—users interact with this visual part of the app. Windows apps include Microsoft software products like Microsoft Word, Internet Explorer and Visual Studio; software products created by other vendors; and customized software that you and other app developers create.

Visual Studio Environment The Visual Studio environment is where you create and test your projects. In Visual Studio, it is called an Integrated Development Environment (IDE) consisting of various tools including: Form Designer Editor for entering and modifying code Compiler Debugger Object Browser Help Facility

Menu Bar and Toolbar Commands for managing the IDE and for developing, maintaining and executing apps are contained in menus, which are located on the menu bar of the IDE The set of menus displayed depends on what you’re currently doing in the IDE.

Tool Box You can scroll to view more controls. To sort the tools in the toolbox: Right-click the toolbox and select. Sort Items Alphabetically from the context menu (shortcut menu). When you open the Visual Studio IDE, you generally see an empty environment with a Start Page.

Properties Window To display the Properties window, select VIEW > Properties Window. The Properties window displays the properties for the currently selected Form, control or file in Design view. Properties specify information about the Form or control, such as its size, color and position.

Using Help Context-Sensitive Help Visual Studio provides context-sensitive help pertaining to the “current content” (that is, the items around the location of the mouse cursor). To use context-sensitive help, click an item, then press the F1 key. The help documentation is displayed in a web browser window. To return to the IDE, either close the browser window or select the IDE’s icon in your Windows task bar. You can view this help by selecting the Form, clicking its Text property in the Properties window and pressing the F1 key.

Text Box Allows for user input Text property TextAlign property What is displayed in text box What user entered in text box TextAlign property Controls alignment of text in the text box

Group Box Used as a container for other controls such as radio buttons and check boxes Improves readability of form by separating the controls into logical groups Example Names for Group Boxes ColorGroupBox StyleGroupBox

Check Box Allows the user to select or deselect one or more items in any group Checked property Checked = True Unchecked = False Use the Text property for the text you want to appear next to the box. Example names for Check Boxes BoldCheckBox ItalicCheckBox

Radio Button User may select only one in any group. First create a group box and then create each radio button inside the group box. Checked property Selected = True Unselected = False Text property What is displayed next to the radio button Example Names for Radio Buttons RedRadioButton BlueRadioButton

Picture Box Displays/contains an image Image property Complete path and filename of graphic; it’s a good idea to place the graphic into the folder with your project before it is assigned to a picture box. Can set extension to .bmp, .gif, .jpg, .jpeg, .png, .ico, .emf, .wmf PictureBox controls have several useful properties such as the SizeMode property. StretchImage causes picture to be resized to match the size of the control, or the Visible property, which can be set to False to make the picture disappear

Naming Rules and Conventions Have a set of standards and always follow them. No spaces, punctuation marks, or reserved words Use Pascal casing. Examples MessageLabel ExitButton DataEntryForm PaymentAmountTextBox Using good consistent names for objects can make a project easier to read and understand, as well as easier to debug. When you select a name for an object, Visual Basic requires the name to begin with a letter or an underscore; names can contain letters, digits, and underscores but no spaces, punctuation marks, or reserved words such as Exit or It. Pascal casing is beginning the name with an uppercase character and capitalizing each additional word in the name.

Recommended Naming Conventions for VB Objects Object Class Example Form DataEntryForm Button ExitButton Label TotalLabel TextBox PaymentAmountTextbox Radio button BoldRadiobutton CheckBox PrintSummaryCheckBox PictureBox LandscapePictureBox ComboBox BookListComboBox ListBox IngredientsListBox

Modes Design Time — used when designing the user interface and writing code Run Time — used when testing and running a project Break Time — if/when receiving a run-time error or pause error The Title Bar indicates which mode is currently being used.

Planning the Project Design the user interface. Set up the form. Resize the form. Place a label and a button control on the form using the toolbox. Lock the Controls in place. After the user interface is designed, the next step is to set the properties. Design the user interface by making a sketch of the form that includes the controls. Resize the form in the document window; drag the handle (key term) in the lower-right corner. Place the controls by pointing to the tool in the toolbox and clicking to select; drag the pointer over the form and the pointer becomes a crosshair; point to a spot to place the corner of the control and drag to create the control; a selected control that is selected will have 8 small square handles around it (Button 2). Once the controls have been selected and placed on the form, right-click on one of the controls and select Lock Controls from the context menu.

Setting the Form Properties The default startup object is Form1 The name of the form should always be changed to adhere to naming rules The properties window shows the files properties Using good consistent names for objects can make a project easier to read and understand, as well as easier to debug. When you select a name for an object, Visual Basic requires the name to begin with a letter or an underscore; names can contain letters, digits, and underscores but no spaces, punctuation marks, or reserved words such as Exit or It. Pascal casing is beginning the name with an uppercase character and capitalizing each additional word in the name.

Setting Properties Label 1 Button 1 Button 2 Form Name MessageLabel Text leave blank Button 1 Name PushButton Text Push Me Button 2 Name ExitButton Text Exit Form Name HelloForm Text Hello World by your name Design the user interface by making a sketch of the form that includes the controls. Resize the form in the document window; drag the handle (key term) in the lower-right corner. Place the controls by pointing to the tool in the toolbox and clicking to select; drag the pointer over the form and the pointer becomes a crosshair; point to a spot to place the corner of the control and drag to create the control; a selected control that is selected will have 8 small square handles around it (Button 2). Once the controls have been selected and placed on the form, right-click on one of the controls and select Lock Controls from the context menu.

Setting the Tab Order of Controls (1 of 2) One control on a Form always has the focus. Not all control types can receive the focus. Text boxes, buttons — focus Picture boxes and labels — no focus TabStop property is applicable only for controls that are capable of receiving the focus. Designates whether a control is allowed to receive the focus; set to True or False TabIndex property determines the order the focus moves as the Tab key is pressed.

Setting the Tab Order of Controls (2 of 2)