1 Pertemuan 02 Visual Basic Environment and Control Matakuliah: D0524 / Algoritma dan Pemrograman Komputer Tahun: 2005 Versi:

Slides:



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

CS0004: Introduction to Programming Visual Studio 2010 and Controls.
Chapter 1: An Introduction to Visual Basic 2012
Using Macros and Visual Basic for Applications (VBA) with Excel
CHAPTER TWO Creating Simple Visual Basic.NET Windows Applications.
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,
Introduction to Visual Basic Programming. Lecture Outline History What is Visual Basic First Look at the VB 6.0 Environment Some VB Terminology Our first.
Guide to Oracle10G1 Introduction To Forms Builder Chapter 5.
1 Pertemuan 07 Procedures Matakuliah: D0524 / Algoritma dan Pemrograman Komputer Tahun: 2005 Versi:
1 Pertemuan 05 Selection Matakuliah: D0524 / Algoritma dan Pemrograman Komputer Tahun: 2005 Versi:
1 Pertemuan 09 Database Matakuliah: D0524 / Algoritma dan Pemrograman Komputer Tahun: 2005 Versi:
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.
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 2005 ENRICHMENT CHAPTER Visual Studio Tools for Office.
Visual Basic Chapter 1 Mr. Wangler.
Department of Mechanical Engineering, LSUSession VII MATLAB Tutorials Session VIII Graphical User Interface using MATLAB Rajeev Madazhy
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.
CHAPTER TWO Creating Simple Visual Basic.NET Windows Applications.
Chapter 1: An Introduction to Visual Basic 2005 Programming with Microsoft Visual Basic 2005, Third Edition.
1 1 Lab1 Ismail M. Romi – IT Dept, PPU, Visual Basic 2005 Programming Tour.
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.
Chapter 3: Using GUI Objects and the Visual Studio IDE.
1 Pertemuan 26 Bahasa-bahasa Pemrograman (Lanjutan) Matakuliah: T0604-Pengantar Teknologi Informasi Tahun: 2008 Versi: 2.0/0.0 Williams, B.K, Stacy C.
Microsoft Visual Basic 2005: Reloaded Second Edition Chapter 2 Creating a User Interface.
Microsoft Visual Basic 2005 ENRICHMENT CHAPTER Visual Studio Tools for Office.
Copyright © 2001 by Wiley. All rights reserved. Chapter 2: Using Visual Basic to Create a First Project Getting Started with VB Development Environment.
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.
© Copyright by Deitel & Associates, Inc. and Pearson Education Inc. All Rights Reserved. Chapter 12 - Graphical User Interface Concepts: Part.
CHAPTER TWO Creating Simple Visual Basic.NET Windows Applications.
Chapter Two Creating a First Project in Visual Basic.
Using Microsoft Visual Studio 2005 Original by Suma Rao Revised by John G. McMahon ( 9/6/2008 )
Creating Graphical User Interfaces (GUI’s) with MATLAB By Jeffrey A. Webb OSU Gateway Coalition Member.
Visual Basic.NET Comprehensive Concepts and Techniques Chapter 8 Debugging, Creating Executable Files, and Distributing a Windows Application.
Chapter 2 – Introduction to the Visual Studio .NET IDE
Microsoft Visual Basic 2005 BASICS Lesson 1 A First Look at Microsoft Visual Basic.
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.
SEEM3460 Tutorial GUI in Java. Some Basic GUI Terms Component (Control in some languages) the basic GUI unit something visible something that user can.
1 Visual Basic Part I - A tool for customizing your program Principles of GIS
 2002 Prentice Hall. All rights reserved. 1 Chapter 2 – Introduction to the Visual Studio.NET IDE Outline 2.1Introduction 2.2Visual Studio.NET Integrated.
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.
Object-Oriented Application Development Using VB.NET 1 Chapter 2 The Visual Studio.NET Development Environment.
Chapter 3 I Need a Tour Guide (Introduction to Visual Basic 2010) Clearly Visual Basic: Programming with Visual Basic nd Edition.
COMPUTER PROGRAMMING I 3.01 Apply Controls Associated With Visual Studio Form.
Addison Wesley is an imprint of © 2011 Pearson Addison-Wesley. All rights reserved. Chapter 2 Creating Applications with Visual Basic.
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.
Microsoft Visual Basic 2012: Reloaded Fifth Edition Chapter One An Introduction to Visual Basic 2012.
Chapter 6 Controlling Program Flow with Looping Structures.
Visual Basic/ Visual Studio Brandon Large. Connecting to prior knowledge In your notes write down what the two main parts of the computer are. The “software”
Chapter 2: The Visual Studio.NET Development Environment Visual Basic.NET Programming: From Problem Analysis to Program Design.
Dive Into® Visual Basic 2010 Express
Visual Basic.NET Windows Programming
Pertemuan 22 The Business Views of the Technology Architecture
Chapter 2 – Introduction to the Visual Studio .NET IDE
3.01 Apply Controls Associated With Visual Studio Form
Graphical User Interface Concepts: Part I
1. Introduction to Visual Basic
3.01 Apply Controls Associated With Visual Studio Form
Chapter 1: An Introduction to Visual Basic 2015
Chapter 2 – Introduction to the Visual Studio .NET IDE
CIS16 Application Development Programming with Visual Basic
Presentation transcript:

1 Pertemuan 02 Visual Basic Environment and Control Matakuliah: D0524 / Algoritma dan Pemrograman Komputer Tahun: 2005 Versi:

2 Learning Outcomes Pada akhir pertemuan ini, diharapkan mahasiswa akan mampu : Menjelaskan lingkungan dan kontrol pada Visual Basic

3 Outline Materi Why Visual Basic Visual Basic Modes Visual Basic Controls Windows Form Control Button Control Label Control Textbox Control MsgBox Statement InputBox Function

4 Why Visual Basic Fastest and easiest way to create applications for Microsoft Windows –Complete set of tools which simplify the creation of the graphical user interface –Rapid prototyping tool Internet capabilities (VBScript language) It can be used as a tool to develop front- end applications for database systems Microsoft estimate that there are over 3 million VB developers world wide

5 Visual Basic Modes Design Mode –Placing, arranging, and customizing the appearance of buttons, labels, and other controls on a form. –Writing processing scripts (source code). –Saving the solution. –Making an executable file. Run Mode –Executes the solution. –Used to evaluate the workability of a part of the project. –Used to show the user how the solution will work. Break Mode –Helps the developer with debugging. –Enables the developer to switch back to run mode or design mode.

6 VB Integrated Development Environment (IDE) Tool box Tool bar Menu bar Properties Window Form layout window Project Explorer window Title bar Form Window

7 Visual Basic Controls Trigger: Initiate processing –Ex. Button, MainMenu, and Timer Input: Get data from user –Ex. TextBox, RadioButton, and CheckBox Output: Display results to user –Ex. Label, DataGrid, and ListView Organize: Group other controls –Ex. Form, GroupBox, and Panel Data Access: Interface with databases –Ex. Entire Data Group and DataGrid

8 Windows Form Control The window that is displayed when the application is running. The IDE automatically creates a Windows Form when you start a new project. This form will hold or “contain” other controls.

9 Button Control React to the click of the use Perform a task associated with the name of the button that is displayed on its face. Appearance and Use: –Appears as a rectangular-shaped control on a form. –Its face can display text, an image, or both. –The face of the button should clearly indicate its function. Properties: –The most common properties of the Button control are listed. –Most properties are available for every control. Events: –Components are able to respond to events. –The click event is generated when the user clicks the mouse button. –You write code to handle events. –Double-click the Button control to automatically open the code window.

10 Label Control Used to display information to the user. Used to label other controls or show results of a calculation. Appearance and Use: –Appears as a rectangular area that can be filled with text. –You have some control over size and alignment of text. –You can include a border around the label. Properties: –Many of the Button control properties apply to the Label control. –The Text Property is the most-used property for the Label control.

11 Textbox Control Provides an area for the user to type while the program runs. Appearance and Use: –Displays as a rectangular area that provides the user a place to type. –You can limit the user types –You can also surround the TextBox with a border. Properties: –Some of the TextBox control properties are only available at run time. –The value of the Text property is used most frequently. –Control of user entry is shared between properties and events. –The PasswordChar property allows you to set a security character. –TextLength property determines the number of characters contained in a textbox. –Selection… properties provide information on user selections in the TextBox control. Events: –Focus means the user is currently working with the specific control. Enter - Occurs when input focus is received. KeyPress - Occurs when a key is pressed while the control has focus. Leave – Occurs when input focus leaves the control. –Methods Enable the developer to manipulate text in a TextBox. Many are available to the developer.

12 MsgBox Statement The MsgBox statement will display information that requires user intervention. Example: –MsgBox("This is an example of a message box, please press OK to return to the application", vbDefaultButton1, "Message Box Sample")

13 Inputbox Function The InputBox() function requests information from the user with a dialog box. It requires user intervention. –InputBox("Enter a value", "InputBox Sample")