



Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
Prepare for your exams
Study with the several resources on Docsity
Earn points to download
Earn points by helping other students or get them with a premium plan
Community
Ask the community for help and clear up your study doubts
Discover the best universities in your country according to Docsity users
Free resources
Download our free guides on studying techniques, anxiety management strategies, and thesis advice from Docsity tutors
Visual Basic is a programming language that enables the rapid application development (RAD) of graphical user interface (GUI) applications, databases, and ActiveX controls. It is known for its ease of use and high-level abstraction, making it a popular choice for creating window-based applications. an overview of Visual Basic, its features, and various controls (tools) used in the programming environment.
Typology: Lecture notes
1 / 7
This page cannot be seen from the preview
Don't miss anything!
Visual Basic is a third-generation event-driven programming language. Visual Basic was derived from BASIC and enables the rapid application development (RAD)of graphical user interface (GUI) applications, access to databases using Data Access Objects, Remote Data Objects, or ActiveX Data Objects, and creation of ActiveX controls and objects. A programmer can create an application using the components provided by the Visual Basic program itself. Visual basic is a unique language with respect to different interface, a different style and a different method of doing things must be learned. Visual basic is completely graphically oriented, so you will be learning a lot of controls (tools) and different methods for controlling the program. Visual basic is also a fun and practical language because all the difficulties of coding is minimized with its custom data bases, but it is fully functional for creating games, applications, diagnostics etc. any windows program can be created with visual basic and we find it is the easiest language for creating window base application.
Powerful applications for Microsoft windows 95 and windows NT. It includes all the general windows controls, grid control, tab control and data-bound control. It also incorporates a limited subset of the Jet Engine’s data access capabilities in the data control and specific data control. These features allow you to access existing database, but do not provide for creating new database or data access objects. B) PROFESSIONAL EDITION - The professional edition provides computer professionals with a full featured set of tools for developing solutions for others. It includes all the features of the learning edition, plus additional Active X controls, including internet controls and the crystal report writer. The professional edition includes all of the data control features and in addition provides the full data access objects programming interface. C) ENTERPRISE EDITION - The Enterprise edition allow professionals to create robust distributed application in a team setting. It includes all the features of the professional edition, plus the automation manager, component manager, database management tools and Microsoft visual source safe. The enterprise edition adds a number of powerful client/server tools to visual basic’s data access capabilities, including the Remote Data Control (RDC) specifically designed to access Remote ODBC (Open Database Connecting) client/server databases. LEARNING EDITION PROFESSIONAL EDITION ENTERPRISE EDITION
In computer programming, event-driven programming is a programming paradigm in which the flow of the program is determined by events such as user actions, sensor outputs, or messages from other programs or threads. Event-driven programming is the dominant paradigm used in graphical user interfaces and other applications that are centered on performing certain actions in response to user input. The application starts and a form or control receives an event. The event can be caused by the user (by pressing a key) or by the system (timer) or indirectly by your code. There is an event procedure corresponding to events. Many event occurs in conjunction with other events. For eg:- when the double click event occurs the mouse down, mouse up or click events also occurs. Even driven programming or event programming is a program model in which the flow of program is determined by events that is sensor output or user access (mouse click, key press) or message from other program. Even driven programming can also be defined as an application architecture in which the application has been main loop which is clearly divided in to two section. The first is event section (event direction) and second is the event handling. Event driven programs can be written in any language although the visual basic is easier that provide high level abstraction. Some integrated development environment (IDE) provide code section, combining section, error section etc. The Sequence of events applications are:- i. The application start a form is loaded and display. The form GUI component receipt and event. The event by because by the user our system or indirectly by a code. If these is a code in corresponding even procedure is executed. ii. The application wait for next events some common events are given below:- a. Keyword related events:- key down, key up, key press etc. b. Mouse related events:- mouse move, mouse down, mouse up, mouse click, mouse double click. c. Form related events:- initialized, load, resize, activate, deactivate etc. d. Control related events:- Got focus, last focus etc.
The term of IDE stands for integrated development environment. VB is not just a language it is an integrated development environment in which we can develop, run, test and debug our application. The working environment in visual basic is often referred to as the integrated development environment or IDE because it integrates many different functions such as designed the one editing, compile and debugging with in a common environment. In most traditional development tools each of these functions would operates as a separate program. Each with it’s own interface the visual basic integrates the following options:-
iv. PROPERTIES WINDOWS :- properties windows list the property setting for selected control or component. A property is a characteristics of an object such as size, caption, font, back color, visible etc. v. FORM DESIGNER :- The form designer server as a windows that we customize to design the interfaceof our application we add that tools, graphics and pictures to a form. vii. CODE EDITOR WINDOWS :- The code editor windows serves as an editor form entering application code. A separate code editor window is created for each form or code model in our application.
viii. FORM LAYOUT WINDOW :- The form layout window allow us to position we form in our application using a small graphical representation of the screen. VISUAL BASIC CONTROLS (OBJECTS) I. LABEL :- A label control display text that user can’t change directly, OR A label display read only text some important properties of label controls are outside, backcolor, backstyle, forecolor, forestyle, caption data form, datamember, datasource. Notes:- The caption properties determines the text shown in the label. If we defined corporate in the caption access key is defined if we defined. The label control has many of the same events as any other control like change, click, double click, mouse move, mouse turn. II. TEXT BOX :- Text box are commonly used for accepting user input or entering data. A textbox displays information that we entered during design mode or run mode, it is also called edit field or edit control. Some important properties are data field data member data source, locked, maximum length multiline, password char, scrollbar, text. III. COMMAND BUTTON :- A command button control one of the most common control forms in windows application. A command button control carries out a command or action when a user selects it. Some of the important properties of command button are:- caption, cancel, style, default, enable, name etc. IV. OPTION BUTTON :- Option button control is also called radio button that are use to select one and only one option from a group of option, usually option buttons are grouped together with in a frame control. Some important properties of option button are caption, name ,value etc. VALUE:- The option button is valuable at both designed time and run time. At run time we test the value property to see whether it is turn on or off the value property has two settings true and false. Option button events are click, double click, drag and drop, got- focus, last-focus etc.
XVIII. DATA CONTROL :- The data control enable us to connect to an existing data base and display information from database to forms. XIX. OLE CONTROL :- The OLE container control embeds data in to a VB application.