VB Summary. 1


Visual Basic is a high-level programming language that provides users with an integrated development environment.

Integrated development environment: a development environment that integrates various functions such as program design, editing, modification, operation, debugging and debugging.

 

The general format of the event handler in VB

PrivateSub object name _ name of the event ( event parameter table )          

code

......      

End Sub

 

The previous private indicates that this function is private, and sub indicates that this function also has the characteristics of a subprocess. Sub declared with private (that is, sub-process), then the sub-process is only visible to the module where it is located, and only other processes and functions in the module can call it. In the parentheses behind the function is the parameter table (including the parameter name, parameter type, and parameter transmission method). If there is no parameter, it can be left blank, but the parentheses cannot be omitted.

 

Form _Load () - when the form is loaded into a display memory, is excited by the system.

Form _Activate () - the form is activated to become the active form, inspired by the system.

Form _Click () - Users excited with a mouse click Forms window.

Form _DBLCLICK () - Fires when the user double-clicks the form's window with the mouse.

Command Button_Click ()-Fired when the user clicks the command button with the mouse. Command buttons cannot respond to double-click events.

Tag _Change () - the content label box when displayed, i.e. Caption excitation value of the property changes.

Text Box_Change ()-Fired when the content of the text box, ie the value of the Text property, changes.


Published 18 original articles · won praise 1 · views 5881

Guess you like

Origin blog.csdn.net/qq844838587/article/details/73345223