Slide 1 ICS 012 Visual Programming I Ahmed Esmat Second.

Slides:



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

CS0004: Introduction to Programming Visual Studio 2010 and Controls.
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,
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.
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.
Using Visual Basic 6.0 to Create Web-Based Database Applications
CA 121 Intro to Programming Tariq Aziz and Kevin Jones GUI Programming in Visual Studio.NET Chapter 1 Tariq Aziz and Kevin Jones.
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.
CVEV 118/698 Visual Basic Lecture 1 Prof. Mounir Mabsout Expert 1: Elsa Sulukdjian Expert 2: Walid El Asmar.
Introduction to computers & Visual Basic School of Business Eastern Illinois University © Abdou Illia, Spring 2003 (Week 3, Monday 1/27/2003)
Using the Visual Basic Editor Visual Basic for Applications 1.
Copyright 2003 : Ismail M.Romi, PPU. All Rights Reserved 1 بسم الله الرحمن الرحيم Palestine Polytechnic University College of Administrative science and.
The Visual Basic Integrated Development Environment.
Compunet Corporation Programming with Visual Basic.NET GUI Week # 11 Tariq Ibn Aziz.
Objectives Machine language vs.. High-level language Procedure-oriented, object-oriented, and event- driven languages Background of Visual Basic VB Integrated.
Introduction to Visual Basic. What is Visual Basic? An environment for developing Windows applications Components –A GUI (Graphical User Interface - gooey)
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.
2. Introduction to the Visual Studio.NET IDE 2. Introduction to the Visual Studio.NET IDE Ch2 – Deitel’s Book.
Not in Text CP212 Winter No VBA Required “Regular” Programming traditional programming is sequential in nature o one command executed after another.
1 Integrated Development Environment Building Your First Project (A Step-By-Step Approach)
Hands-on Introduction to Visual Basic.NET Programming Right from the Start with Visual Basic.NET 1/e 6.
Introduction to Visual Basic (VB)
Unit 20: Event Driven Programming
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.
Using Visual Basic 6.0 to Create Web-Based Database Applications
An Introduction to Visual Basic
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
CHAPTER TWO Creating Simple Visual Basic.NET Windows Applications.
1 1 Lab1 Ismail M. Romi – IT Dept, PPU, Visual Basic 2005 Programming Tour.
Integrated Development Environment (IDE)
Irwin/McGraw-Hill © The McGraw-Hill Companies, Inc., Visual Basic Projects Project Structure and VB’s Programming Tools chapter TWO.
Copyright © 2001 by Wiley. All rights reserved. Chapter 2: Using Visual Basic to Create a First Project Getting Started with VB Development Environment.
Visual C++ Programming: Concepts and Projects
 Application – another name for a program.  Interface – is what appears on the screen when the application is running.  Program Code – is instructions.
OCC Network Drives  H:\  P:\ 
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.
Irwin/McGraw-Hill Copyright© 2000 by the McGraw-Hill Companies, Inc. PowerPoint® Presentation to accompany prepared by James T. Perry University of San.
Chapter Two Creating a First Project in Visual Basic.
Visual Basic.NET BASICS Lesson 1 A First Look at Microsoft Visual Basic.NET.
Visual C# 2012 How to Program © by Pearson Education, Inc. All Rights Reserved.
Microsoft Visual Basic 2005 BASICS Lesson 1 A First Look at Microsoft Visual Basic.
CS130 Project 1 A simple VB application ("project" or program): user enters amount of sales then clicks the "Calculate button", the application displays.
Visual C# 2012 How to Program © by Pearson Education, Inc. All Rights Reserved.
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,
P6 BTEC Level 3 Subsidiary Diploma in ICT. Automation The end user of a spreadsheet may be proficient in using the software, but the more that you automate.
Visual Basic CDA College Limassol Campus Lecture:Pelekanou Olga Semester C Week - 1.
Copyright © 2010 Pearson Education, Inc. Publishing as Pearson Addison-Wesley Starting Out with Programming Logic & Design Second Edition by Tony Gaddis.
Integrated Development Environment Visual Basic IDE Slide 2 of 10 Topic & Structure of the lesson Introduction Integrated Development Environment Tool.
Mark Dixon, SoCCE SOFT 131Page 1 16 – Visual BASIC 6.0.
1 Visual Basic Part I - A tool for customizing your program Principles of GIS
Copyright (c) 2003 by Prentice Hall Provided By: Qasim Al-ajmi Chapter 2 Introduction to Visual Basic Programming Visual Basic.NET.
Visual Basic Integrated Development Environment (IDE) 56:150 Information System Design.
COMPUTER III. Fundamental Concepts of Programming Control Structures Sequence Selection Iteration Flowchart Construction Introduction to Visual Basic.
Visual Basic.Net. Software to Install Visual Studio 2005 Professional Edition (Requires Windows XP Pro) MSDN Library for Visual Studio 2005 Available.
IE 411/511: Visual Programming for Industrial Applications Lecture Notes #2 Introduction to the Visual Basic Express 2010 Integrated Development Environment.
Week 1 Lecture 1 Slide 1 CP2028 Visual Basic Programming 2 “The VB Team” Copyright © University of Wolverhampton CP2028 Visual Basic Programming 2 v Week.
Chapter 2 Build Your First Project A Step-by-Step Approach 2 Exploring Microsoft Visual Basic 6.0 Copyright © 1999 Prentice-Hall, Inc. By Carlotta Eaton.
Dive Into® Visual Basic 2010 Express
Chapter 2: The Visual Studio .NET Development Environment
Visual Basic Code & No.: CS 218
Introduction to Event-Driven Programming
Chapter Topics 15.1 Graphical User Interfaces
Unit 20: Event Driven Programming
1. Introduction to Visual Basic
Chapter 15: GUI Applications & Event-Driven Programming
Overview of the IDE Visual Studio .NET is Microsoft’s Integrated Development Environment (IDE) for creating, running and debugging programs (also.
Presentation transcript:

Slide 1 ICS 012 Visual Programming I Ahmed Esmat Second Semester (042)

Slide 2 ICS 012 Visual Programming I WEEK 1 v Visual and Event Driven Programming v An Overview of Visual Basic (IDE)

Slide 3 Aims and Objectives v To understand what is visual and event driven programming v The Visual Basic Programming environment – Background to BASIC – Background to Windows – Visual Basic Environment – Design/Control/Project/Form/Code Windows – Control Properties – Events & Event Driven Programming – Visual Basic Programs

Slide 4 Visual Programming Aims v Aim is to develop the necessary skills to design and construct small-scale interactive software v Aim is to educate you with the fundamental principles of designing and writing programs v Visual Basic will be the target language but skills gained will be applicable to other languages

Slide 5 Event Driven Programming v Event-driven programs respond to events from the computer, such as the mouse button being pressed. v The designer uses ready-made objects such as CommandButtons and TextBoxes, to build user interfaces that make up the application. v This approach to programming drastically reduces the amount of code required to develop a Windows application.

Slide 6 Visual Programming Languages v Windows easy to use v Programming via Visual environments –.NET – Visual C++, C# – Java, J++, J# – Borland Delphi and others… v Visual Basic developed in-house at Microsoft – Interface designer – Simple coding language – Quick to produce programs

Slide 7 Visual Basic Concepts v Controls - Processing – Everything is a ‘control’ – Controls have pre-defined ‘events’ – Code can be attached to an event – When an event occurs u if code has been attached it is executed, u otherwise default processing takes place

Slide 8 Running VB Opening screen Select this option - Standard EXE

Slide 9 Visual Basic Environment v Components of the VB Design Environment Form Project Explorer Properties Form Layout Control Toolbox Toolbar

Slide 10 Event Driven Programs in VB v In normal programming your application is always in control v In GUI(Graphical User Interface) programming you have a number of options which may be triggered v Events happen to a Control – mostly user generated events – controls can also cause events

Slide 11 Control Toolbox

Slide 12 Events v Each Control has a relevant set of Events The events that can happen to a Command Button

Slide 13 Visual Basic Environment - Properties Window v Controls - Properties – All controls have appropriate properties such as u Height, Name, Colour – they can be changed either at design-time or at run-time Main Menu v Design Time – Simply change the words alongside the property. Ie

Slide 14 Visual Basic Environment - Properties Window v Run Time – in your code/program Private Sub Form1_load() Form1.Caption = “Main Menu” End Sub

Slide 15 Visual Basic Event Processing Trigger Event Code Executed

Slide 16 Project Explorer

Slide 17 Visual Basic Program Structure v Project File – ‘.VBP’ v Form Files – ‘.FRM’ – ‘.FRX’ v Modules – ‘.BAS’ v Custom Controls – ‘.VBX’ files v Save As... – Possible problem

Slide 18 Visual Basic Environment - Using Context Sensitive Help v Context sensitive help is very useful v Select the item control that you want help on v Press the F1 key F1

Slide 19 Command Button Select the command button from the toolbar

Slide 20 Controls: Shape v A shape control allows you to ‘draw’ on the screen v You can specify the: Shape Colours FillStyle

Slide 21 Visual Separation of Controls

Slide 22 Writing VB Programs v Plan the Program Tasks v Design User Interface v Set Properties v Write Code (Event Handlers) v Test and Debug the Program v Document and Distribute the Program

Slide 23 End of Lecture