Visual Basic .NET BASICS

Slides:



Advertisements
Similar presentations
Introduction to Visual Basic.NET Uploaded By: M.Sheraz anjum.
Advertisements

Chapter 1: An Introduction to Visual Basic 2012
Using Macros and Visual Basic for Applications (VBA) with Excel
Customizing Outlook. Forms Window in which you enter and view information in Outlook Outlook Form Designer The environment in which you create and customize.
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.
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.
Office 2003 Introductory Concepts and Techniques M i c r o s o f t Word Web Feature Creating Web Pages Using Word.
Office 2003 Post-Advanced Concepts and Techniques M i c r o s o f t Word Project 8 Working with Macros and Visual Basic for Applications (VBA)
1 Excel Lesson 3 Organizing the Worksheet Microsoft Office 2010 Introductory Pasewark & Pasewark.
1b – Inside Visual Studio Lingma Acheson Department of Computer and Information Science, IUPUI CSCI N331 VB.NET Programming.
Visual Basic Chapter 1 Mr. Wangler.
Introduction to Graphical User Interfaces. Objectives * Students should understand what a procedural program is. * Students should understand what an.
IE 411/511: Visual Programming for Industrial Applications
1 1 Lab1 Ismail M. Romi – IT Dept, PPU, Visual Basic 2005 Programming Tour.
Lecture #2: Using your computer Learning about the Windows XP Operating System.
Chapter 3: Using GUI Objects and the Visual Studio 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.
Visual Basic.NET Comprehensive Concepts and Techniques Chapter 2 The Visual Basic.NET Integrated Development Environment.
Program Design and Coding
Microsoft Visual Basic 2012 CHAPTER THREE Program Design and Coding.
Microsoft Visual Basic 2010 CHAPTER THREE Program Design and Coding.
Tutorial 11 Five windows included in the Visual Basic Startup Screen Main Form Toolbox Project Explorer (Project) Properties.
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.
Pasewark & Pasewark 1 Access Lesson 5 Creating and Modifying Reports Microsoft Office 2007: Introductory.
Chapter 5 Quick Links Slide 2 Performance Objectives Understanding Framesets and Frames Creating Framesets and Frames Selecting Framesets and Frames Using.
Visual Basic.NET BASICS Lesson 1 A First Look at Microsoft Visual Basic.NET.
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.
Microsoft Visual Basic 2005 BASICS Lesson 1 A First Look at Microsoft Visual Basic.
Visual Basic CDA College Limassol Campus Lecture:Pelekanou Olga Semester C Week - 1.
Pasewark & Pasewark 1 Access Lesson 5 Creating and Modifying Reports Microsoft Office 2007: Introductory.
Chapter Eleven The X Window System. 2 Lesson A Starting and Navigating an X Window System.
Microsoft Office 2010 is the newest version of Microsoft Office, offering features that provide users with better functionality and easier ways to work.
This is how you invoke the Microsoft Visual Studio 2010 Software. All Programs >> Microsoft Visual Studio 2010.
BBT 10 Visual Basic 03 Enrichment. Tip Before creating any files for your project, first create a new folder Save all of your files in the folder Pieces.
Lesson 3: Changing the Appearance of Worksheets. 2 Learning Objectives After studying this lesson, you will be able to:  Change the view of an Excel.
Object-Oriented Application Development Using VB.NET 1 Chapter 2 The Visual Studio.NET Development Environment.
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.
IE 411/511: Visual Programming for Industrial Applications Lecture Notes #2 Introduction to the Visual Basic Express 2010 Integrated Development Environment.
Visual Basic.NET Comprehensive Concepts and Techniques Chapter 2 The Visual Basic.NET 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.
Visual Basic.NET Comprehensive Concepts and Techniques Chapter 6 Looping and Multiple Forms.
Chapter 10 Using Macros, Controls and Visual Basic for Applications (VBA) with Excel Microsoft Excel 2013.
Visual Basic.NET Comprehensive Concepts and Techniques Chapter 11 Creating Web Applications and Writing Data to a Database.
Chapter 3: I Need a Tour Guide (Introduction to Visual Basic 2012)
Chapter 1: An Introduction to Visual Basic .NET
Visual Basic.NET Windows Programming
Chapter 2: The Visual Studio .NET Development Environment
Microsoft Visual Basic 2005 BASICS
Chapter 1: An Introduction to Visual Basic 2015
Chapter 2 – Introduction to the Visual Studio .NET IDE
Program and Graphical User Interface Design
How to design a Windows Forms application
3.01 Apply Controls Associated With Visual Studio Form
Chapter 1: An Introduction to Visual Basic 2015
Introduction to the Visual C# 2005 Express Edition IDE
MANIPULATING TEXT WITHIN AND BETWEEN DOCUMENTS
Microsoft Excel 2003 Illustrated Complete
Program and Graphical User Interface Design
Chapter 1 Editing a Photo
Chapter 7 Advanced Form Techniques
Variables and Arithmetic Operations
Chapter 2 – Introduction to the Visual Studio .NET IDE
CIS16 Application Development Programming with Visual Basic
Building an Application in the Visual Basic .NET Environment
Creating the First Program
Presentation transcript:

Visual Basic .NET BASICS Lesson 2 Forms, Controls, and Properties

Objectives Create a new Visual Basic .NET project. Save a Visual Basic .NET project. View and modify form properties. Create controls such as command buttons.

Objectives (continued) Move, resize, and delete objects. Explain the concept of focus. Set additional properties (BackColor, Top, and Left).

Creating a New Project To create a new project, select the New Project option from the File menu or push the New Project button on the Start Page.

Forms Forms are the windows and dialog boxes when the program runs. Every program must have at least one form because all other objects must be contained within forms.

Saving the Project Visual Basic .NET will save your project whenever you compile the program. Use the Save All button to save your project manually.

Viewing and Modifying Properties The Properties window allows you to easily alter the properties of objects. Two of the most important properties of a form are the Text and Name properties. The Text property specifies the text that appears in the title bar. The Name property names the object for coding.

Creating Controls Controls are the objects that make up the user interface. One of the most common controls is the command button. To create controls, you must access the Toolbox. Objects can be moved and resized using techniques common to most Windows programs.

Understanding Focus The object that is currently active on the screen is said to have the focus. Press the Tab key to move the focus from one control to another. Each object in a window will get the focus in a sequence, called the tab order.

Dealing with Build Errors There are times when errors will occur when Visual Studio. NET attempts to run your program. Renaming objects can confuse the compiler and produce an error.

Setting Additional Properties The BackColor property sets the form’s background color. The Location property allows you to specify the location of an object using X and Y coordinates.

Summary To create your own Visual Basic. NET program, you must create a new project. The Windows Application project type allows you to create a program from scratch. Projects created using the Windows Appli-cation option begin with one blank form. Forms become the windows and dialog boxes when the program runs.

Summary (continued) Every program has at least one form. All other objects must be contained within forms. Visual Basic. NET will save your project whenever you compile the program. A window created from a Visual Basic. NET form has certain functionality by default, such as the ability to be moved, resized, maximized, minimized, and closed.

Summary (continued) Properties are the characteristics of Visual Basic. NET objects. Properties can be modified in the Properties window. The Text and (Name) properties are two of the most important properties. The Text Property controls what the user sees in the title bar of a form and in other objects such as command buttons.

Summary (continued) When we add programming code later, the (Name) property allows us to refer to the object using a meaningful name. Program-mers often use a naming standard when naming objects. Controls are the command buttons, text boxes, scroll bars, and other objects that make up the user interface.

Summary (continued) A command button is a standard pushbutton control that commonly appears in dialog boxes. Command buttons can be moved, resized, and deleted like other Windows objects. The term focus refers to the active status of one of the objects in a window. Only one object can have the focus.

Summary (continued) The BackColor property controls the background color of a form. The Location property can be used to accurately position objects. By default, the X and Y point values of the Location property use a measurement called pixels.