Visual Basic Properties, Methods and Events

Slides:



Advertisements
Similar presentations
CS7026 jQuery Events. What are Events?  jQuery is tailor-made to respond to events in an HTML page.  Events are actions that can be detected by your.
Advertisements

Pemrograman VisualMinggu …8… Page 1 MINGGU Ke Delapan Pemrograman Visual Pokok Bahasan: Graphical User Interface Tujuan Instruksional Khusus: Mahasiswa.
© Copyright by Deitel & Associates, Inc. and Pearson Education Inc. All Rights Reserved. 1 Tutorial 21 - “Cat and Mouse” Painter Application.
T U T O R I A L  2009 Pearson Education, Inc. All rights reserved Painter Application Introducing Graphics with Windows Presentation Foundation.
Events. Events Single Event Handlers Click Event Mouse Events Key Board Events Create and handle controls in runtime Outline.
Introduction to Computing Dr. Nadeem A Khan. Lecture 13.
Copyright 2003 : Ismail M.Romi, PPU. All Rights Reserved 1 Lab2 Managing Controls.
1 Introduction to the Visual Studio.NET IDE Powerpoint slides modified from Deitel & Deitel.
CS0004: Introduction to Programming Events. Review  Event Procedure  A set of instructions to be executed when a certain event happens.  Many event-driven.
Chapter 3 Introduction to Event Handling and Windows Forms Applications.
Microsoft Visual Basic 2012 CHAPTER TWO Program and Graphical User Interface Design.
Visual Basic Chapter 1 Mr. Wangler.
BIM313 – Advanced Programming Simple Controls 1. Contents Traditional Controls – Labels, Text Boxes, Buttons, Check Boxes, List Boxes, Combo Boxes Advanced.
Introduction to Graphical User Interfaces. Objectives * Students should understand what a procedural program is. * Students should understand what an.
CSC 298 Windows Forms.
T U T O R I A L  2009 Pearson Education, Inc. All rights reserved Typing Application Introducing Keyboard Events, Menus, Dialogs and the Dictionary.
Visual Basic 2005 CHAPTER 2 Program and Graphical User Interface Design.
Chapter Five: Word Processing (Microsoft Word 2007) Author(s): Ahmed Dalalah, Ahmed Abusalameh, Mohammad AlZoubi & Khaled Dajani1.
Lecture Set 13 Drawing Mouse and Keyboard Events Part B – Mouse and Keyboard Events.
Irwin/McGraw-Hill © The McGraw-Hill Companies, Inc., Visual Basic Projects Project Structure and VB’s Programming Tools chapter TWO.
Microsoft Visual Basic 2005 CHAPTER 4 Variables and Arithmetic Operations.
© Copyright by Deitel & Associates, Inc. and Pearson Education Inc. All Rights Reserved. Chapter 12 - Graphical User Interface Concepts: Part.
1. S:\Courses\CSSE\ibrahima\CS2340\Notes Folder Section1 Folder Section2 2.
Fundamentals of GUI Programming. Objectives: At the end of the session, you should be able to: describe the guidelines that are used for creating user-friendly.
BIM211 – Visual Programming Interacting with Users Graphics 1.
Controls. Adding Controls to Form -You can pick controls from the toolbox. -To add the controls from Toolbox to the Form You have be in design view. -To.
Chapter 2 – Introduction to the Visual Studio .NET IDE
© Copyright by Deitel & Associates, Inc. and Pearson Education Inc. All Rights Reserved. 1 Tutorial 21 - “Cat and Mouse” Painter Application.
Visual Basic CDA College Limassol Campus Lecture:Pelekanou Olga Semester C Week - 1.
Visual Basic.NET Comprehensive Concepts and Techniques Chapter 4 Working with Variables, Constants, Data Types, and Expressions.
1 Actionscript for Flash by Dr SC Li. 2 Understanding more about instances Symbolsgraphics buttons Movie clips Instances (without names) No interaction.
VB Objects & Events (Exercises) School of Business Eastern Illinois University © Abdou Illia, Spring 2003 (Week 3, Friday 1/31/2003)
Chapter Four: Word Processing (MS Word 2007) Author(s): Ahmed Dalalah, Ahmed Abusalameh, Mohammad AlZoubi & Khaled Dajani (Prepared By: Ahmed Abusalama)
MIS333k(Poynor) Chapter 2. Intro to VBA Events Where to plug in your programs?
COMPUTER PROGRAMMING I 3.01 Apply Controls Associated With Visual Studio Form.
 2002 Prentice Hall. All rights reserved. 1 Outline Mouse Event Handling Keyboard Event Handling Graphical User Interface Concepts:
Microsoft Visual Basic 2012 CHAPTER FOUR Variables and Arithmetic Operations.
CIS 338: Events Dr. Ralph D. Westfall April, 2011.
Implement User Input Windows Development Fundamentals LESSON 2.4A.
COMPUTER PROGRAMMING I 3.01 Apply Controls Associated With Visual Studio Form.
Dr. Abraham Professor UTPA Graphical User Interface.
Microsoft Visual Basic 2010 CHAPTER FOUR Variables and Arithmetic Operations.
Project Structure and Tools 1120-Ch2.PPT
Visual Basic.NET Windows Programming
Chapter 2 Using Spreadsheets.
Introduction to Computer CC111
Chapter 8: Writing Graphical User Interfaces
Chapter 2 – Introduction to the Visual Studio .NET IDE
Console and GUI Programs
Variables and Arithmetic Operations
3.01 Apply Controls Associated With Visual Studio Form
Program and Graphical User Interface Design
1. Introduction to Visual Basic
How to design a Windows Forms application
3.01 Apply Controls Associated With Visual Studio Form
Introduction to Events
Event Driven Programming
Program and Graphical User Interface Design
Variables and Arithmetic Operations
Simple Windows Applications
P.J.Balakumaran, AP, Commerce CA, SNMV CAS
Introduction to jQuery
Visual Basic: Week 5 Review User defined functions
6. WinForms 2003 C# GUI - Basics.
JavaScript and Events CS Programming Languages for Web Applications
CS7026 jQuery Events.
3.Visual Basic Controls.
JavaScript and Events CS Programming Languages for Web Applications
Presentation transcript:

Visual Basic 6.0 - Properties, Methods and Events P.J.Balakumaran, A.P, SNMV CAS

P.J.Balakumaran, A.P, SNMV CAS Textbox, Command buttons, etc., are called as objects objects are loaded with properties Ex:- flower loaded with color, shape, etc… like objects P.J.Balakumaran, A.P, SNMV CAS

P.J.Balakumaran, A.P, SNMV CAS Properties define the characteristics of an object such as Size, Color etc., Textbox Properties are Enabled, Font, MultiLine, Text, Visible, Width, etc., Visual Basic 6.0 P.J.Balakumaran, A.P, SNMV CAS

P.J.Balakumaran, A.P, SNMV CAS Method A method is an action that can be performed on objects. Object-oriented programming, a method is a connected or built-in procedure. Text1.Move 700, 400 It has other associated methods such as Refresh, SetFocus, etc. Visual Basic 6.0 P.J.Balakumaran, A.P, SNMV CAS

P.J.Balakumaran, A.P, SNMV CAS Simple logic Properties describe objects. Methods cause an object to do something. Events are what happens when an object does something Alignment Left Change or CLick Font- Bold Visual Basic 6.0 Visual Basic 6.0 Visual Basic 6.0 Objects Method Event P.J.Balakumaran, A.P, SNMV CAS

P.J.Balakumaran, A.P, SNMV CAS Common Properties PROPER TY DESCRIPTION Left The position of the left side of a control with respect to its container Top The position of the top of a control with respect to its container Height A control's height Width A control's width Name The string value used to refer to a control Enabled The Boolean (True/False) value that determines whether users can manipulate the control Visible The Boolean (True/False) value that determines whether users can see the control P.J.Balakumaran, A.P, SNMV CAS

P.J.Balakumaran, A.P, SNMV CAS Common Methods P.J.Balakumaran, A.P, SNMV CAS

P.J.Balakumaran, A.P, SNMV CAS Common Events Event Occurrence Change The user modifies text in a combo box or text box. Click The user clicks the primary mouse button on an object. DblClick The user double-clicks the primary mouse button on an object. DragDrop The user drags an object to another location. DragOver The user drags an object over another control. GotFocus An object receives focus. KeyDown The user presses a keyboard key while an object has focus. KeyPress The user presses and releases a keyboard key while an object has focus. KeyUp The user releases a keyboard key while an object has focus. LostFocus An object loses focus. MouseDown The user presses any mouse button while the mouse pointer is over an object. MouseMove The user moves the mouse pointer over an object. MouseUp The user releases any mouse button while the mouse pointer is over an object. P.J.Balakumaran, A.P, SNMV CAS