Mark Dixon, SoCCE SOFT 131Page 1 22 – Visual BASIC 2005.

Slides:



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

FINAL REVIEW Carley. Contents Unit A: Understanding Essential Computer Concepts Unit B: Getting Started wit Mac OS X Leopard Unit C: Understanding File.
Mark Dixon Page 1 04 – Database Design: Forms. Mark Dixon Page 2 Session Aims & Objectives Aims –To allow easier data entry using forms Objectives, by.
Mark Dixon, SoCCE SOFT 136Page 1 05 – Conditional Execution.
Mark Dixon, SoCCE SOFT 136Page 1 02 – Software Development Life-Cycle.
Mark Dixon, SoCCE SOFT 131Page 1 20 – Web applications: HTML and Client-side code.
Mark Dixon, SoCCE SOFT 131Page 1 03 – User Interface Design, and Sound and Graphics.
Compunet Corporation Programming with Visual Studio.NET GUI Week 13 Tariq Aziz and Kevin Jones.
Mark Dixon Page 1 02 – Dynamic HTML (client-side scripting)
Mark Dixon, SoCCE SOFT 131Page 1 03 – Debugging & Graphics.
Mark Dixon, SoCCE SOFT 131Page 1 02 – Software Development Lifecycle, & User Interface Design.
Using the Visual Basic Editor Visual Basic for Applications 1.
Slide 1 ICS 012 Visual Programming I Ahmed Esmat Second.
Mark Dixon, SoCCE SOFT 131Page 1 13 – Control Arrays & Container Controls.
Mark Dixon, SoCCE SOFT 131Page 1 03 – Debugging, Sound, and Graphics.
Mark Dixon, SoCCE SOFT 131Page 1 SOFT – Module Introduction & Overview.
Mark Dixon, SoCCE SOFT 131Page 1 02 – Software Development Lifecycle, & User Interface Design.
Mark Dixon, SoCCE SOFT 131Page 1 08 – Web applications: HTML and ActiveX controls.
Graphics and Multimedia In visual Studio. Net (C#)
Graphics and Multimedia. Outline Introduction to Multimedia Loading, Displaying and Scaling Images Windows Media Player Adding a Flash Movie Microsoft.
Visual Basic 2008 Express Edition The IDE. Visual Basic 2008 Express The Start Page Recent Projects Open an existing project Create a New Project.
Chapter 3 Working with Symbols and Interactivity.
Introduction to VB.NET Tonga Institute of Higher Education.
NOTE: To change the image on this slide, select the picture and delete it. Then click the Pictures icon in the placeholder to insert your own image. WEB.
CIS 338: Creating ActiveX Controls Dr. Ralph D. Westfall March, 2003.
Tutorial 6 Working with Bitmaps and Gradients, and Publishing Flash Files.
When you start Photo Story the title screen gives you three options. The following slides will illustrate the directions when “Begin a new story” has been.
The Web Collection, Revealed MACROMEDIA STUDIO 8 INTEGRATING.
Appendices A - F A-F Exploring Microsoft Visual Basic 6.0 Copyright © 1999 Prentice-Hall, Inc. By Carlotta Eaton.
Creating your own form from scratch.. To create a custom form, you can modify an existing form or design and create a form from scratch. In either case,
Mark Dixon 1 22 – Web applications: Writing data to Databases using ASP.Net.
© 2011 Delmar, Cengage Learning Chapter 3 Working with Symbols and Interactivity.
Clearly Visual Basic: Programming with Visual Basic 2008 Chapter 4 I Need a Tour Guide.
Working with Symbols and Interactivity
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.
Tutorial 111 The Visual Studio.NET Environment The major differences between Visual Basic 6.0 and Visual Basic.NET are the latter’s support for true object-oriented.
Integrated Development Environment (IDE)
NOTE: To change the image on this slide, select the picture and delete it. Then click the Pictures icon in the placeholder to insert your own image. WEB.
Mark Dixon, SoCCE SOFT 131Page 1 02 – Dynamic HTML (client-side scripting)
Copyright © 2001 by Wiley. All rights reserved. Chapter 2: Using Visual Basic to Create a First Project Getting Started with VB Development Environment.
Tutorial 1 Introducing Adobe Flash CS3 Professional
Chapter One An Introduction to Visual Basic 2010 Programming with Microsoft Visual Basic th Edition.
© 2011 Delmar, Cengage Learning Chapter 1 Getting to Know Illustrator.
Windows Forms. Architecture Wrapper around WIN32API Part of the.NET Framework Code can be in C# or VB Toolbox has forms elements (buttons, etc.) Dragging.
Chapter Two Creating a First Project in Visual Basic.
Mark Dixon Page 1 03 – Dynamic HTML (client-side scripting)
Visual Basic.NET BASICS Lesson 1 A First Look at Microsoft Visual Basic.NET.
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.
Mark Dixon, SoCCE SOFT 131Page 1 02 – Dynamic HTML (client-side scripting)
Getting Started with Fireworks A few tips: –Before you begin an assignment, be sure to create a folder on your drive for it. –If your canvas is checkered,
Visual Basic CDA College Limassol Campus Lecture:Pelekanou Olga Semester C Week - 1.
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.
M Dixon 1 Tech HTML. M Dixon 2 Admin Attendance Register: –log in to your profile.
Mark Dixon Page 1 Tech – HTML. Mark Dixon Page 2 Admin Attendance Register: –log in to your profile.
Mark Dixon, SoCCE SOFT 131Page 1 16 – Visual BASIC 6.0.
Mark Dixon 1 9 – Case Study. Mark Dixon 2 Session Aims and Objectives Aims –To give an overview of the development of a web-page from initial idea to.
16.9 Introduction to Multimedia Visual Basic offers many convenient ways to include images and animations in programs Computing field decades ago mainly.
Copyright (c) 2003 by Prentice Hall Provided By: Qasim Al-ajmi Chapter 2 Introduction to Visual Basic Programming Visual Basic.NET.
COMPUTER PROGRAMMING I 3.01 Apply Controls Associated With Visual Studio Form.
COMPUTER III. Fundamental Concepts of Programming Control Structures Sequence Selection Iteration Flowchart Construction Introduction to Visual Basic.
TOOLBOX. The Toolbox Intrinsic Controls - always included in the Toolbox ActiveX Controls - separate files with ocx file extension Insertable Objects.
COMPUTER PROGRAMMING I 3.01 Apply Controls Associated With Visual Studio Form.
Dreamweaver MX. 2 Timeline Overview (p. 480) n Animations can be achieved with DHTML (__________ HTML) using JavaScript code and _____ or later browsers.
3.01 Apply Controls Associated With Visual Studio Form
Social Media And Global Computing Introduction to Visual Studio
Working with Symbols and Interactivity
(c) V/2-Com (Verhaart) Multimedia Elements & standards 4/15/2019 (c) V/2-Com (Verhaart)
Overview of the IDE Visual Studio .NET is Microsoft’s Integrated Development Environment (IDE) for creating, running and debugging programs (also.
Chapter 4 Enhancing the Graphical User Interface
Presentation transcript:

Mark Dixon, SoCCE SOFT 131Page 1 22 – Visual BASIC 2005

Mark Dixon, SoCCE SOFT 131Page 2 Session Aims & Objectives Aims –introduce you to the fundamentals of: VB2005 development environment –stand-alone.exe –PocketPC/SmartPhone.exe –activeX control Objectives, by end of this week’s sessions, you should be able to: –develop 'stand alone' applications –put bitmap (raster) graphics into your applications –draw simple vector graphics in your applications –play MP3 and WAV files in your applications

Mark Dixon, SoCCE SOFT 131Page 3 VB2005 IDE Microsoft Visual BASIC 2005 IDE: Integrated Development Environment –Screen (form) designer –Code editor –Debugger –Help Start menu, Programs, University Software, M, Microsoft Visual Studio 2005

Mark Dixon, SoCCE SOFT 131Page 4 Example: PicView - Analysis SPECIFICATION User Requirements –display photos quickly and easily one after another Software Requirements –Functional: –change current folder and drive –display list of picture files in current folder –display picture (*.jpg, *.bmp, and *.gif) from files in current folder –Non-functional should be quick and easy to use

Mark Dixon, SoCCE SOFT 131Page 5 Example: PicView - Design User interface design: Functional design: Trigger (when)Actions (what) click event of Drive Boxmake drive current (directory box points to this drive) click event of Directory Boxmake folder current (file box points to this folder) click event of File Boxdisplay selected picture in picture box

Mark Dixon, SoCCE SOFT 131Page 6 New Project: Windows Application Stand-alone windows application (.exe) File menu, new project item

Mark Dixon, SoCCE SOFT 131Page 7 VB2005 IDE

Mark Dixon, SoCCE SOFT 131Page 8 Controls: Standard Picture Box: display pictures

Mark Dixon, SoCCE SOFT 131Page 9 Controls: Add VB 2005 can't show all controls (too many) choose which to include –Right click toolbox –Select 'Choose items…' option

Mark Dixon, SoCCE SOFT 131Page 10 Controls: additions Drive List Box: allow user to select disk drive Directory List Box: allow user to select folder File List Box: allow user to select file

Mark Dixon, SoCCE SOFT 131Page 11 Controls' Properties Picture Box (pic) –Picture: allows display of bitmap (raster graphic) as background Drive List Box (drv) –Drive: the currently selected disk drive Directory List Box (dir) –Path: the currently selected directory (folder) File List Box (fil) –Path: the currently selected folder/directory –Pattern: only display this type of file (e.g..jpg) –FileName: the currently selected file

Mark Dixon, SoCCE SOFT 131Page 12 Example: PicView - Code Public Class frmPicView Private Sub frmPicView_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load filMain.Pattern = "*.jpg;*.gif" End Sub Private Sub dirMain_MouseUp(ByVal sender As Object, ByVal e As System.Windows.Forms.MouseEventArgs) Handles dirMain.MouseUp filmain.Path = dirmain.Path End Sub Private Sub filMain_SelectedIndexChanged( ByVal sender As System.Object, ByVal e As System.EventArgs) Handles filMain.SelectedIndexChanged picMain.Image = Image.FromFile(filMain.Path & "/" & filMain.FileName) End Sub End Class dirMain (Directory List) filMain (File List) picMain (Picture Box)

Mark Dixon, SoCCE SOFT 131Page 13 Example: Music Player - Analysis User Requirement: –to play different music for long time without interruption, at same location (while working or at party) Software Requirements Specification software should: –allow user to: select track (MP3 file) from folder on disk play selected track –automatically move to next track in folder go back to first after last has played later lecture

Mark Dixon, SoCCE SOFT 131Page 14 Multimedia Control Right click toolbox select 'choose items…' select COM tab Multimedia Control –plays MP3 & WAV files

Mark Dixon, SoCCE SOFT 131Page 15 Multimedia Controls' Properties Multi-media Control –FileName: name of file to play –Command: controls playback

Mark Dixon, SoCCE SOFT 131Page 16 Example: Music Player - Design Compare the following User Interface Designs: V0 V1

Mark Dixon, SoCCE SOFT 131Page 17 Example: Music Player - Code mmcMain.Command = "Close" mmcMain.FileName = filMain.Path & "\" & filMain.FileName mmcMain.Command = "Open" drvMain dirMain filMain mmcMain

Mark Dixon, SoCCE SOFT 131Page 18 Types of Graphics: Raster Raster graphics – made of dots (pixels – picture elements) –stored in.jpg,.bmp, and.gif files (picture property) –suitable for complex, static pictures (e.g. photos) –difficult to change programmatically –loses quality when enlarged:

Mark Dixon, SoCCE SOFT 131Page 19 Types of Graphics: Vector Vector graphics – made of objects (lines, circles, etc.) –not available in VB Script or HTML –suitable for simple, dynamic pictures (diagrams) –No loss of quality when enlarged

Mark Dixon, SoCCE SOFT 131Page 20 Vector Graphics: Grid System the origin (position 0,0) is at top left –in mathematics it is always bottom left

Mark Dixon, SoCCE SOFT 131Page 21 Picture Box: Drawing Methods Picture Box has –CreateGraphics object Methods (vector graphics) –DrawLine : draws a straight line between 2 points –DrawEllipse: draws an ellipse/circle –PSet: draws a dot (point) –Clear: clears (screen) drawing area

Mark Dixon, SoCCE SOFT 131Page 22 Example: Face Face

Mark Dixon, SoCCE SOFT 131Page 23 Example: Face v2 Face

Mark Dixon, SoCCE SOFT 131Page 24 Mobile Applications New Project –Smart Devices

Mark Dixon, SoCCE SOFT 131Page 25 Tutorial Exercise: PicView Task 1: Get the PicView example (from the lecture) working. Task 2: Get the StickMan example (from the lecture) working. Task 3: Get the Music Player example (from the lecture) working. Task 4: Modify your program to automatically go the next track after the current one ends. Task 5: Modify your program to automatically go the first track after the last one ends. Task 6: Get the Face v2 example (from the lecture working).