SlideShare a Scribd company logo
3
Most read
5
Most read
9
Most read
Event Driven Programming
               Key Features
Event Driven Programs

 Typically used for most modern day
  software applications examples include:
  word processing, spreadsheets, drawing
  packages etc.

 Usually used for GUIs where many types
  of events are generated i.e. clicking on a
  button or another object
Key features
 Event Handlers
 Trigger Functions
 Events
 Event Loops
 Forms
 Flexibility
 Service oriented
 Suitability for GUIs
 Simplicity of programming
 Time Driven
Event Handlers

 VB.Net uses subroutines for event
  handling, with the name of the object
  followed by the name of the event – see
  below:               Event



  Event
  Handler
 ByVal means it is passing the variable by value.
 sender is an object of type System.Object. All objects in .NET
  inheirit from System.Object, as such it is passing the control that is
  causing the event to fire.
 e is an object of type System.EventArgs where EventArgs is the
  Class for event arguments or, the arguments the event is passed.
 It contains information you need to process the event. The
  information available depends on the type of event that was raised.
  Since the members available through the "e" argument depend on
  the kind of action that raised the event, it is important to use an
  event that provides the information you're interested in.
Event+driven+programming key+features
Trigger functions
 These are used along with the object’s name to determine with event handler to run

 Every object has a range of trigger functions, one for each possible event that can
  happen to it. For example, txtText could have an event handler for the following
  triggers: GotFocus, TextChanged etc...
 Temporal triggers mean triggers set off by duration of time
 State triggers are when the current situation causes a certain set of procedures to run

 What is the trigger here??
Event Loops
 Event Driven Programs have event loops built into the
  environment. The loops keep testing the interface to
  detect whether anything has happened, such as clicking
  on a button or typing into a textbox etc.

 Event Loops are also known as event listeners
Flexibility

 Programmers have erroneous control over
  where to place code and how to start it.

 Every object has a good choice of events
  that a program can respond to. These
  events give an excellent level of control
  over exactly what the program will
  respond to when the user does something

More Related Content

PPT
Compiler Construction introduction
PPT
Uml in software engineering
PPT
Use Case Diagram
PPTX
virtual function
PPT
Os Threads
PPTX
Overview of UML Diagrams
PPT
Ch 3 event driven programming
Compiler Construction introduction
Uml in software engineering
Use Case Diagram
virtual function
Os Threads
Overview of UML Diagrams
Ch 3 event driven programming

What's hot (20)

PPT
Object Oriented Design
PPTX
Process in operating system
PPTX
Process state in OS
PPTX
Cohesion and coupling
PPT
Java layoutmanager
PPTX
Introduction to Object Oriented Programming
PPTX
Java beans
PPTX
Software Crisis
PPTX
Presentation on-exception-handling
PPTX
software cost factor
PPS
Java Exception handling
PPTX
Process management os concept
PPTX
unit testing and debugging
PDF
Java threads
PPT
Web controls
PPTX
Interface in java
PPT
Deadlock Detection
PPTX
Object Oriented Programming Using C++
PDF
OS - Process Concepts
Object Oriented Design
Process in operating system
Process state in OS
Cohesion and coupling
Java layoutmanager
Introduction to Object Oriented Programming
Java beans
Software Crisis
Presentation on-exception-handling
software cost factor
Java Exception handling
Process management os concept
unit testing and debugging
Java threads
Web controls
Interface in java
Deadlock Detection
Object Oriented Programming Using C++
OS - Process Concepts
Ad

Viewers also liked (20)

PPTX
Event driventheory
DOCX
Event oriented programming
PPTX
Event driven programming amazeballs
PPTX
Event driven theory
PDF
Event Driven Javascript
PPTX
Presentation on visual basic 6 (vb6)
PDF
Delphi L01 Intro
PPTX
Event and signal driven programming
PDF
Server Side Event Driven Programming
PPTX
Service oriented programming with jolie part1
PPS
Let Us Learn Lambda Using C# 3.0
PPTX
Data types vbnet
PPTX
Simple debugging
PPTX
Decisions
PPTX
Design for edp
PPTX
Software development lifecycle
PPTX
Data structures vb
PPTX
Ndu06 typesof language
PPTX
Decisions
PPTX
Design documentation
Event driventheory
Event oriented programming
Event driven programming amazeballs
Event driven theory
Event Driven Javascript
Presentation on visual basic 6 (vb6)
Delphi L01 Intro
Event and signal driven programming
Server Side Event Driven Programming
Service oriented programming with jolie part1
Let Us Learn Lambda Using C# 3.0
Data types vbnet
Simple debugging
Decisions
Design for edp
Software development lifecycle
Data structures vb
Ndu06 typesof language
Decisions
Design documentation
Ad

Similar to Event+driven+programming key+features (20)

PPTX
PATTERNS06 - The .NET Event Model
PPTX
Event Handling in Java
PDF
Java Programming :Event Handling(Types of Events)
PPTX
Advance java programming- Event handling
PPTX
Event handling in Java(part 1)
PPTX
EVENT DRIVEN PROGRAMMING SWING APPLET AWT
PPTX
Java event processing model in c# and java
PPT
Unit 6 Java
PDF
JAVA PROGRAMMING- GUI Programming with Swing - The Swing Buttons
PPTX
Event Handling in JAVA
PPTX
Advance Java Programming(CM5I) Event handling
PPTX
Event handling
PPTX
EVENT HANDLING in Object Oriented Programming in Java
PPT
Proposed Event Processing Definitions ,September 20, 2006
PPTX
Lesson 07 Actions and Commands in WPF
PDF
Ajp notes-chapter-03
PPTX
tL20 event handling
PPTX
event-handling.pptx
PPT
Events1
PDF
Javascript Browser Events.pdf
PATTERNS06 - The .NET Event Model
Event Handling in Java
Java Programming :Event Handling(Types of Events)
Advance java programming- Event handling
Event handling in Java(part 1)
EVENT DRIVEN PROGRAMMING SWING APPLET AWT
Java event processing model in c# and java
Unit 6 Java
JAVA PROGRAMMING- GUI Programming with Swing - The Swing Buttons
Event Handling in JAVA
Advance Java Programming(CM5I) Event handling
Event handling
EVENT HANDLING in Object Oriented Programming in Java
Proposed Event Processing Definitions ,September 20, 2006
Lesson 07 Actions and Commands in WPF
Ajp notes-chapter-03
tL20 event handling
event-handling.pptx
Events1
Javascript Browser Events.pdf

More from Faisal Aziz (17)

PPTX
Mozilla Devroom Session
PDF
Learn mozilla l10n in 5 steps
PPTX
Learn mozilla l10n in 5 steps
PPTX
Spmcasestudy
PPTX
Lecture 2-project organization
PPTX
Vb.net ide
PPT
Modified.net overview
PPTX
The ecommerce-models-1208250464320375-9
PPT
Inside .net framework
PPT
Arrays
PPT
The msg box function and the messagebox class
PPT
Chapter 2
PPT
Hci history
PPT
Hci chapt1
PPTX
Business intelligence
PPTX
Rock your firefox
PPTX
How to use firefox like a boss
Mozilla Devroom Session
Learn mozilla l10n in 5 steps
Learn mozilla l10n in 5 steps
Spmcasestudy
Lecture 2-project organization
Vb.net ide
Modified.net overview
The ecommerce-models-1208250464320375-9
Inside .net framework
Arrays
The msg box function and the messagebox class
Chapter 2
Hci history
Hci chapt1
Business intelligence
Rock your firefox
How to use firefox like a boss

Recently uploaded (20)

PDF
Machine learning based COVID-19 study performance prediction
PPT
“AI and Expert System Decision Support & Business Intelligence Systems”
PPTX
Digital-Transformation-Roadmap-for-Companies.pptx
PDF
Building Integrated photovoltaic BIPV_UPV.pdf
PDF
Advanced methodologies resolving dimensionality complications for autism neur...
PPTX
Big Data Technologies - Introduction.pptx
PDF
Agricultural_Statistics_at_a_Glance_2022_0.pdf
PDF
Per capita expenditure prediction using model stacking based on satellite ima...
PDF
Optimiser vos workloads AI/ML sur Amazon EC2 et AWS Graviton
PDF
Architecting across the Boundaries of two Complex Domains - Healthcare & Tech...
PPTX
Understanding_Digital_Forensics_Presentation.pptx
PDF
Electronic commerce courselecture one. Pdf
PDF
How UI/UX Design Impacts User Retention in Mobile Apps.pdf
PDF
NewMind AI Weekly Chronicles - August'25 Week I
PDF
Mobile App Security Testing_ A Comprehensive Guide.pdf
PDF
Review of recent advances in non-invasive hemoglobin estimation
PPTX
Programs and apps: productivity, graphics, security and other tools
PDF
Dropbox Q2 2025 Financial Results & Investor Presentation
PDF
Chapter 3 Spatial Domain Image Processing.pdf
PPTX
Spectroscopy.pptx food analysis technology
Machine learning based COVID-19 study performance prediction
“AI and Expert System Decision Support & Business Intelligence Systems”
Digital-Transformation-Roadmap-for-Companies.pptx
Building Integrated photovoltaic BIPV_UPV.pdf
Advanced methodologies resolving dimensionality complications for autism neur...
Big Data Technologies - Introduction.pptx
Agricultural_Statistics_at_a_Glance_2022_0.pdf
Per capita expenditure prediction using model stacking based on satellite ima...
Optimiser vos workloads AI/ML sur Amazon EC2 et AWS Graviton
Architecting across the Boundaries of two Complex Domains - Healthcare & Tech...
Understanding_Digital_Forensics_Presentation.pptx
Electronic commerce courselecture one. Pdf
How UI/UX Design Impacts User Retention in Mobile Apps.pdf
NewMind AI Weekly Chronicles - August'25 Week I
Mobile App Security Testing_ A Comprehensive Guide.pdf
Review of recent advances in non-invasive hemoglobin estimation
Programs and apps: productivity, graphics, security and other tools
Dropbox Q2 2025 Financial Results & Investor Presentation
Chapter 3 Spatial Domain Image Processing.pdf
Spectroscopy.pptx food analysis technology

Event+driven+programming key+features

  • 2. Event Driven Programs  Typically used for most modern day software applications examples include: word processing, spreadsheets, drawing packages etc.  Usually used for GUIs where many types of events are generated i.e. clicking on a button or another object
  • 3. Key features  Event Handlers  Trigger Functions  Events  Event Loops  Forms  Flexibility  Service oriented  Suitability for GUIs  Simplicity of programming  Time Driven
  • 4. Event Handlers  VB.Net uses subroutines for event handling, with the name of the object followed by the name of the event – see below: Event Event Handler
  • 5.  ByVal means it is passing the variable by value.  sender is an object of type System.Object. All objects in .NET inheirit from System.Object, as such it is passing the control that is causing the event to fire.  e is an object of type System.EventArgs where EventArgs is the Class for event arguments or, the arguments the event is passed.  It contains information you need to process the event. The information available depends on the type of event that was raised. Since the members available through the "e" argument depend on the kind of action that raised the event, it is important to use an event that provides the information you're interested in.
  • 7. Trigger functions  These are used along with the object’s name to determine with event handler to run  Every object has a range of trigger functions, one for each possible event that can happen to it. For example, txtText could have an event handler for the following triggers: GotFocus, TextChanged etc...  Temporal triggers mean triggers set off by duration of time  State triggers are when the current situation causes a certain set of procedures to run  What is the trigger here??
  • 8. Event Loops  Event Driven Programs have event loops built into the environment. The loops keep testing the interface to detect whether anything has happened, such as clicking on a button or typing into a textbox etc.  Event Loops are also known as event listeners
  • 9. Flexibility  Programmers have erroneous control over where to place code and how to start it.  Every object has a good choice of events that a program can respond to. These events give an excellent level of control over exactly what the program will respond to when the user does something