Properties, Methods, and Events in Visual Basic 6.0

visual basic 6 0 properties methods and events n.w
1 / 8
Embed
Share

Delve into the world of Visual Basic 6.0 to grasp the concepts of properties, methods, and events that define the behavior of objects. Explore how properties describe object characteristics, methods enable actions, and events capture interactions in this powerful programming environment.

  • Visual Basic
  • Properties
  • Methods
  • Events
  • Programming

Uploaded on | 0 Views


Download Presentation

Please find below an Image/Link to download the presentation.

The content on the website is provided AS IS for your information and personal use only. It may not be sold, licensed, or shared on other websites without obtaining consent from the author. If you encounter any issues during the download, it is possible that the publisher has removed the file from their server.

You are allowed to download the files provided on this website for personal or commercial use, subject to the condition that they are used lawfully. All files are the property of their respective owners.

The content on the website is provided AS IS for your information and personal use only. It may not be sold, licensed, or shared on other websites without obtaining consent from the author.

E N D

Presentation Transcript


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

  2. 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

  3. 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

  4. Method A method is an action that can be performed on objects. Visual Basic 6.0 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. P.J.Balakumaran, A.P, SNMV CAS

  5. 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 Visual Visual Basic 6.0 Basic 6.0 Basic 6.0 Objects Method Event P.J.Balakumaran, A.P, SNMV CAS

  6. Common Properties PROPER TY DESCRIPTION Left The position of the left side of a control with respect to its container Top Height Width Name Enabled The position of the top of a control with respect to its container A control's height A control's width The string value used to refer to a control 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

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

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

More Related Content