Current location - Quotes Website - Signature design - What are the labels and controls in VB?
What are the labels and controls in VB?
Write the code in the cilck event of the tag, and you can click.

Private subtab 1_Click ()

MsgBox "click me"

End joint

In a graphical user interface (GUI), an object on a screen that a user can manipulate to perform a specific behavior. Controls are objects that users can interact with to enter or manipulate data. Controls usually appear in dialog boxes or toolbars. This series of topics introduces three main types of controls:

Windows public * * * controls, including those described by the owner.

ActiveX control

Other control classes provided by Microsoft Foundation Class Library (MFC)

Windows common control

Windows operating system always provides several Windows public controls. These control objects are programmable, and the Visual C++ dialog editor supports adding these control objects to the dialog box. Microsoft Foundation Class Library (MFC) provides corresponding classes to encapsulate these controls, as shown in Table Windows Common Controls and MFC Classes. (Some items in the table have related topics to further describe them. For information about controls without themes, see the documentation for MFC classes. )

The CWnd class is the base class of all window classes, including all control classes. Windows public * * * controls are supported in the following environments:

Windows 95, Windows 98 and Windows 2000

Windows nt version 3.5 1 and later.

Win32 series version 1.3(Visual c++ version 4.2 and later do not support Win32 series).

Old-fashioned male * * * controls were also available in earlier versions of Windows. These old-fashioned male controls include check boxes, combo boxes, edit boxes, list boxes, option buttons, normal buttons, scroll bar controls and static controls.

ActiveX control

ActiveX controls (formerly known as OLE controls) can be used in dialog boxes of Windows applications or HTML pages of the World Wide Web. For more information, see MFC ActiveX controls.