Tuesday, June 15, 2010

Example of code in the event GotFocus LostFocus(VB6.0)


To understand the coding of events more events are examples.


• GotFocus - when the cursor object.

• LostFocus - when the cursor from the object.

Example of code in the event GotFocus and LostFocus in VB6.0.

• When the cursor is Active objects that change color to indicate that the cursor position. When moving the cursor to another location, change the color it was before. Examples shown.



The code is written for all actions and objects in the event GotFocus LostFocus (a sample object Text1) follows.
Event GotFocus.









Event LostFocus.


An object must be written in two events and try and test applications.
[Thai]

10 comments: