Graphical User Interfaces Tonga Institute of Higher Education.

Slides:



Advertisements
Similar presentations
Information System Design Lab 5&6. User Interface Design.
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,
Automating Tasks With Macros
C# Programming: From Problem Analysis to Program Design1 Programming Based on Events C# Programming: From Problem Analysis to Program Design 3 rd Edition.
Flowchart Start Input weight and height
Automating Tasks With Macros. 2 Design a switchboard and dialog box for a graphical user interface Database developers interact directly with Access.
1 Introduction to the Visual Studio.NET IDE Powerpoint slides modified from Deitel & Deitel.
CA 121 Intro to Programming Tariq Aziz and Kevin Jones GUI Programming in Visual Studio.NET Chapter 3 Tariq Aziz and Kevin Jones.
Compunet Corporation Programming with Visual Basic.NET GUI Chapter 3 Week 13 Tariq Aziz and Kevin Jones.
Fundamentals of Programming in Visual Basic 3.1 Visual basic Objects Visual Basic programs display a Windows style screen (called a form) with boxes into.
Introduction to Visual Basic Chulantha Kulasekere.
Access Tutorial 10 Automating Tasks with Macros
Getting Started Example ICS2O curriculum
Slide 1 Chapter 2 Visual Basic Interface. Slide 2 Chapter 2 Windows GUI  A GUI is a graphical user interface.  The interface is what appears on the.
Visual Basic Chapter 1 Mr. Wangler.
Introduction to VB.NET Tonga Institute of Higher Education.
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.
Tutorial 1: An Introduction to Visual Basic.NET1 Tutorial 1 An Introduction to Visual Basic.NET.
Dreamweaver – Dreamweaver Extras Web Design Section 8-4 Part or all of this lesson was adapted from the University of Washington’s “Web Design & Development.
Chapter 3: Using GUI Objects and the Visual Studio IDE.
ACCESS Part 2. OBJECTIVES  Use the Form Wizard  Create a split form  Use Form Layout View  Add fields to a form  Modify form controls  Create calculations.
Tutorial 7 Creating Forms. Objectives Session 7.1 – Create an HTML form – Insert fields for text – Add labels for form elements – Create radio buttons.
Chapter One An Introduction to Visual Basic 2010 Programming with Microsoft Visual Basic th Edition.
Pasewark & Pasewark 1 Access Lesson 5 Creating and Modifying Reports Microsoft Office 2007: Introductory.
Graphical User Interfaces 2 Tonga Institute of Higher Education.
T U T O R I A L  2009 Pearson Education, Inc. All rights reserved. 1 3 Welcome Application Introduction to Visual Programming.
Visual Basic.net Textbox & Label Controls. Textbox Naming convention (txt) Primary use (user input) Can except numeric and character values.
© Copyright by Deitel & Associates, Inc. and Pearson Education Inc. All Rights Reserved. 1 Outline 3.1 Test-Driving the Welcome Application 3.2.
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.
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.
Graphical User Interface You will be used to using programs that have a graphical user interface (GUI). So far you have been writing programs that have.
Visual Basic Programming Introduction VB is one of the High level language VB has evolved from the BASIC language. BASIC stands for Beginners All-purpose.
Copyright © 2010 Pearson Education, Inc. Publishing as Pearson Addison-Wesley Starting Out with Programming Logic & Design Second Edition by Tony Gaddis.
SEEM3460 Tutorial GUI in Java. Some Basic GUI Terms Component (Control in some languages) the basic GUI unit something visible something that user can.
Pasewark & Pasewark 1 Access Lesson 5 Creating and Modifying Reports Microsoft Office 2007: Introductory.
1 Visual Basic Part I - A tool for customizing your program Principles of GIS
COMPUTER PROGRAMMING I 3.02 Apply Properties Associated with the Controls.
Graphical User Interfaces Tonga Institute of Higher Education.
Visual Basic.NET Comprehensive Concepts and Techniques Chapter 3 Building an Application in the Visual Basic.NET Environment.
Visual Basic.NET BASICS Lesson 14 Menus and Printing.
COMPUTER PROGRAMMING I 3.01 Apply Controls Associated With Visual Studio Form.
Visual Basic.NET Comprehensive Concepts and Techniques Chapter 2 The Visual Basic.NET Integrated Development Environment.
 2009 Pearson Education, Inc. All rights reserved. 1 CS1120 Introduction to Windows Forms Applications Many slides modified by Prof. L. Lilien (even many.
 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.
Using Forms and Form Elements In Visual Basic.NET.
Chapter 10 Using Macros, Controls and Visual Basic for Applications (VBA) with Excel Microsoft Excel 2013.
Course ILT Using complex selection structures Unit objectives Include radio buttons and check boxes in an interface, create and call a user- defined Sub.
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.
 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.
Chapter 11 Enhancing an Online Form and Using Macros Microsoft Word 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)
Visual Basic.NET Windows Programming
Microsoft Access 2016 Simplify Data Entry with Forms
Introduction to Computer CC111
Chapter Topics 15.1 Graphical User Interfaces
Chapter 2 – Introduction to the Visual Studio .NET IDE
1. Introduction to Visual Basic
Simplify Data Entry with Forms Chapter 3
Chapter 15: GUI Applications & Event-Driven Programming
Visual C# - GUI and controls - 1
Presentation transcript:

Graphical User Interfaces Tonga Institute of Higher Education

Introduction Programs need to adapt to input from a user. User Interface (UI) – A set of commands or menus through which a user communicates with a program Graphical User Interface (GUI) – A program that displays a user interface in a graphical format Visual Basic.NET makes it very easy to create a professional UI or GUI

Forms Form - A window that makes up an application's user interface.

Controls - 1 Control - An object in a form  Provide a user interface TextBox ComboBox CheckBox OpenFileDialog Etc.  Provide extra functionality ImageList Timer Etc.

Controls - 2 Label  Adds text to the window TextBox  Allows user to enter text TextBox Label Form

Controls - 3 ComboBox  Allows user to select one option from a list of options  The user may see the options when they click on the control RadioButton  Allows user to select an option from a group of options  Only one option may be selected at a time  Lets users see options CheckBox  Allows user to turn one option on or off (True or False) ComboBox RadioButton CheckBox

Controls - 4 Group Box  Contains related controls Button  Initiates code when clicked Group Box Button

Demonstration Adding Controls to your form

Properties Property - Characteristic of an object Use properties to customize how a form or control behaves Forms have many properties  Form.Name  Form.BackColor  Form.Text  Form.FormBorderStyle  And much more Controls have many properties  TextBox.Name  TextBox.Font  TextBox.BorderStyle  TextBox.TextAlign  And much more

Demonstration Adding a Button and changing form and control properties for WindowsApplication1

Class Activity 1. Create a Windows application named “HelloWorld” 2. Change the size of the form to have a width of 200 and a height of Add a button to the form 4. Make the button have a width of 100 and a height of Center the button on the screen 6. Change the color of the form to Lavender using the Form1.BackColor property 7. Change the title of the form to “Hello World!” using the Form1.Text property 8. Change the style of the button to be flat using the Button1.FlatStyle property 9. Run your program

Where is the code? There is code behind the form.  To see the code: Right-click on the form and select View Code. Every change you make through Visual Studio.NET’s graphical user interface is recorded by adding, changing or deleting code behind the scenes. Most of this code is hidden in the " Windows Form Designer generated code “ region Beginners should not modify this code Experts can modify this code

Demonstration Changing a property and seeing the code behind the form automatically change