VB 4 Controls Scrollbar Radio button check box listboxes timers control arrays.

Slides:



Advertisements
Similar presentations
Powerpoint Tutorial J.Kellow.
Advertisements

Working with Intrinsic Controls and ActiveX Controls
An Introduction to Visual Basic Terms & Concepts.
Microsoft® Small Basic
Visual Basic: ballistics
PowerPoint Tutorial 2 Adding Media and Special Effects
How to get started with Excel VBA. We need to enable programming in Excel  the “Developer menu”
Creating a Virtual Control Console for Hardware using Visual Basic Presented by William Koch Kochworx, Ltd. Kochworx, Ltd. October 24, 2002.
Patrick’s PowerPoint Secrets Revealed Paul Bennett.
VB – Event driven Programming Timers & Motion, Sub & Function Arif Zaman.
Visual Basic Project Files:.VBP file: Project File: a small text file that contains the names of other files in the project, as well as some information.
VB Default Controls List Box, Combo Box
VB Controls and Events Week 7: Picture Box, Image Box, Option, Check box, Mouse over, Frames, Shapes.
Slide 1 VB Default Controls Text Box, Check Box, Option Button & Frames.
Visual Basic.net IDE. Integrated Development Environment.
First This is Not My First PowerPoint I am the best Science Teacher Ever!!!!!
Adding Controls to User Forms. Adding Controls A user form isn’t much use without some controls We’re going to add controls and write code for them Note.
Controls General Discussion. VB Controls Visual Basic Controls A control is the generic name for any object placed on a form Controls may be images,
Sep-05 Slide:1 ActiveX Controls in VB ActiveX Controls in VB6.
Lab 9 – User Forms Design. User Forms What are user forms? –Known as dialog boxes –Major ways for getting user input An example of using user forms: Monthly.
Multimedia ! Graphics ! Animation ! Sound Tip Of the Day 4 Tip of the Day: When using graphic methods at Form Load, the AutoRedraw property of the container.
Ch 11: Userforms CP212 Winter Topics Designing User Forms o Controls Setting Properties o Tab Order o Testing Writing Event Handlers o Userform_Initialize.
Visual Basic Games: Week 3 Global variables, parameters, Select, KeyDown Enable, Visible, Focus State of Game Read chapter 3.
1 Κατανεμημένες Διαδικτυακές Εφαρμογές Πολυμέσων Γιάννης Πετράκης.
Power Point Presentations A Step by Step Guide. Contents The very first step Choosing slide layout Adding text boxes Custom Animation Changing slide design.
3461A Readings from the Swing Tutorial. 3461A Overview  The follow is the Table of Contents from the trail “Creating a GUI with JFC/Swing” in the “The.
Copyright © 2001 by Wiley. All rights reserved. Chapter 2: Using Visual Basic to Create a First Project Getting Started with VB Development Environment.
§Visual - A method used to create GUI applications. §BASIC - Beginner’s All - purpose Symbolic Instruction Code developed by John Kemeny. §VB- Evolved.
VB Core II Conditional statements Exception handling Loops Arrays Debugging.
VB Games: Preparing for Memory Brainstorm controls & events Parallel structures (again), Visibility, LoadPicture, User-defined procedures, Do While/Loop,busy.
PowerPoint Tutor Follow the directions on each slide to learn how to use some of the features of this program.
MS Visual Basic Applications Walter Milner. Event-driven programming Standard approach for GUIs Contrast with old character interfaces – program determines.
Arrays. Overview u General Discussion  Uses  Structure  Declaration u Searching u Control Arrays.
How to get started with Excel VBA. We need to enable programming in Excel  the “Developer menu”
Arrays1 From time to time an object (a variable, a picture, a label or a command) does not serve as well as a set of objects of a similar kind addressed.
Standard Grade Programming using VB 1 Programming Visual Basic.
What are Buttons? Buttons can be clipart, pictures or animated gifs When you click on buttons they can send you to another slide Buttons can be used to.
MS Visual Basic 6 Walter Milner. VB 6 0 Introduction –background to VB, A hello World program 1 Core language 1 –Projects, data types, variables, forms,
Practical Programming COMP153-08S Week 5 Lecture 1: Screen Design Subroutines and Functions.
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.
CS 101 Test 2 Study Guide Acronyms RAD - Rapid Application Development IDE - Integrated Development Environment GUI - Graphical User Interface VB - Visual.
1 Visual Basic Part I - A tool for customizing your program Principles of GIS
Animations Demonstrates more animation techniques.
Programming Games Show your rock-paper-scissors. Demonstrate bouncing ball. Demonstrate and examine Bo the dog. Homework: Modify Bo to make your own.
Controls Part 2. DateTimePicker Control Used for representing Date/Time information and take it as input from user. Date information is automatically.
Controls. Common properties Height – Height of the control Left – Left of the control Width – width of a control Top - From the screen top Font – Foreground.
Programming games in Visual Basic Review programming & VB topics Insertion sort. Best times. Generate questions & answer patterns for quiz Lab/Homework:
COMPUTER PROGRAMMING I 3.01 Apply Controls Associated With Visual Studio Form.
Basic GUI VISUAL BASIC. BASIC GUI Slide 2 of 53 Topic & Structure of the lesson Introduction Data Validation Use controls for making choices Write Pull.
COMPUTER PROGRAMMING I 3.01 Apply Controls Associated With Visual Studio Form.
Using Forms and Form Elements In Visual Basic.NET.
Dr. Abraham Professor UTPA Graphical User Interface.
3.01 Apply Controls Associated With Visual Studio Form
3.01 Apply Controls Associated With Visual Studio Form
An Introduction to Visual Basic
User Forms.
Maths Games ©Copyright
Visual Basic.
المحاضرة الأولى Lab(1) أ.ساره الأحمدي برمجة حاسب 2.
What Shapes Can You See in this Picture?
Chapter 6 - Visual Basic Schneider
Simple Windows Applications
Name Date.
Визуалды бағдарламалау ортасы.
Web Development Using ASP .NET
Zhen Jiang West Chester University
Visual C# - GUI and controls - 1
EVENT TITLE Time, Date Location
EVENT TITLE Time, Date Location
Presentation transcript:

VB 4 Controls Scrollbar Radio button check box listboxes timers control arrays

Controls – tidying up layout

Scrollbar control

Scrollbar Controls example Label1 ScrollBar1 Label2 Picture1 Private Sub VScroll1_Change() Picture1.BackColor = RGB(0, 0, VScroll1.Value) Label2.Caption = "Colour is 0, 0, " & VScroll1.Value End Sub Exercise: Copy this Then add sliders for green and red

Radio buttons

Checkboxes

Listbox

Tab Control – adding it

Tab Control – designing with it

Timer control Hidden control Interval Tick event Enabled or not

Timer example – a clock Private Sub Timer1_Timer() Dim currentTime As Date currentTime = Now() Label1.Caption = currentTime End Sub

Timer exercise Program an animated ball which moves across a window Have a 'Shape' control and a timer Each tick event of the timer moves the shape: shape1.left = shape1.left + speed Make it bounce

Control arrays Sets of controls of same type which share code Have an index so know which is which Set up by copying and pasting first control Exercise Try this out Include a + and an = button