Visual Basic is educed from the BASIC programming language. Visual Basic is a distinctly different language providing powerful features such as graphical user interfaces, event handling, object-oriented features, structured programming, and much more. Visual Basic programs are created in an Integrated Development
2. A complete set of program commands, derived from Microsoft\u2019s implementation of the classical BASIC programming language. The command set includes features that embrace modern-day programming practices.
In traditional computer programs, the actions are carried out in a prescribed order. This order may be sequential, corresponding to the order in which the instructions have been specified. In either case, the order of execution is determined internally within the program.
Visual Basic, on the other hand, is based upon anevent-driven paradigm, in which each feature included within the program is activated only when the user responds to a corresponding object (i.e., an icon, a checkbox, an option button, a menu selection, etc.) within the user interface. The program\u2019s response to an action taken by the user is referred to as anevent. Anevent is a signal that informs an application that something important has occurred. It is an action which you can respond to, or \u201chandle\u201d in code. Events can be generated by a user action, such as clicking the mouse or pressing a key; by program code; or by system. Note that the user initiates the event, but it is the program\u2019s response that actually defines the event. The group of Basic commands that brings about this response is called anevent-procedure.
Handles the execution of a drag-and-drop operation by the user.
SetFocus Gives focus to the object specified in the method call.
many events occur: The mouse button is pressed; the command button in your program is being clicked; and then the mouse button is released. Not all controls have the same events, but some events are shared by many controls. These events occur as a result of some specific user action. These types of events are user-initiated events and are what you will write code for most often.
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.
In Visual Basic, a program is referred to as aproject. Every Visual Basic project consists of at least two separate files \u2013 a project file (whose extension is.vbp), and a form file (with extension.frm). Some projects include multiple form files and other types of files, such as class module (.cls) files, standard module (.bas) files, resource files (.res) files, and ActiveX control (.ocx) files. Thus, the development of a Visual Basic project involves keeping track of several different files, and accessing these files individually within the Visual Basic environment, as needed.
The Visual BasicIDE (Integrated Development Environment) is a collection of menus, toolbars, and windows that make up your programming workbench. Each part of the IDE has features that affect different aspects of your programming activity. The menu bar lets you handle the overall activity and management of your programming. The toolbar enables you to access much of the menu bar's functionality through various toolbar buttons. Forms - the basic building blocks of Visual Basic programs - are presented in a Form Design window. You use the Toolbox to add controls to the forms of your project. The Project window displays the projects on which you're working, as well as the different parts of each of those projects. You browse and set a control, form, and module's properties within the Properties window. Finally, you position and view a form or forms onscreen within the Form Layout window.
This action might not be possible to undo. Are you sure you want to continue?