Visual Basic (VB) is a high-level programming language that evolved from BASIC, designed for creating graphical user interfaces and event-driven applications. It utilizes an Integrated Development Environment (IDE) called Visual Studio .NET, which facilitates the development of applications through a visual interface and object-oriented programming. VB is known for its ease of use and is widely recognized for Rapid Application Development (RAD).
Download as PPTX, PDF, TXT or read online on Scribd
0 ratings0% found this document useful (0 votes)
8 views
module 2
Visual Basic (VB) is a high-level programming language that evolved from BASIC, designed for creating graphical user interfaces and event-driven applications. It utilizes an Integrated Development Environment (IDE) called Visual Studio .NET, which facilitates the development of applications through a visual interface and object-oriented programming. VB is known for its ease of use and is widely recognized for Rapid Application Development (RAD).
Download as PPTX, PDF, TXT or read online on Scribd
You are on page 1/ 9
Introduction
Visual Basic is a high level programming language evolved from
the earlier DOS version called BASIC. BASIC was developed in the mid-1960s by Professors John Kemeny and Thomas Kurtz of Dartmouth College as a language for writing simple programs. It is a fairly easy programming language to learn. The codes look a bit like English Language. VB was developed by Alan Cooper in 1991. VB is a visual and events driven programming language. In BASIC, programming is done in a text only environment and the program is executed sequentially. In VB programming is done in a graphical environment because users may click on a certain object randomly so each object has to be programmed independently to be able to response to those actions(events). Therefore, a VB program is made up of many subprograms, each has its own program codes and each can be executed independently and at the same time each can be linked together in one way or another. The VB environment • A project is a collection of files that make up your application. • The VB environment consist of the following: • - the Blank Form Window which you can design your application interface. It is a window that appears on the screen. Forms are the window and dialog boxes you place on the screen. It is the main window of the application . • - the Project window displays the files that are created in your application. • - the Properties window which displays the properties of various controls and object that are created in your applications. the properties determines the object size, color name, location and appearance on the screen. it tells something about an object such as its name, color, size location. The toolbox that consists of all the controls essential for developing a VB application. An objects (controls) are items that appears on a form or component place inside a form such as command button, radio button, check box, scroll bar, label, option button to get input or display outputs. Each object has properties, methods and events. Methods is an action associated with object. Methods have parentheses while Properties does not. Event occur when the user takes an action such as press the key, move a mouse, clicking a button, clicking a mouse, scrolling and closing a window. Introduction to VB Each object is based on a class. A class is a template/ blueprint used to create a new objects. It contains the definition of all available properties, methods and events. Each time new object create, it must be based on a class. For example, placing three buttons on form. Each button is based on the button class and is considered one object called an instance of the class. Each button (instance) has its own set of properties, methods and events. One button may be labeled OK another Cancel another Exit. When the user clicks the OK button that buttons click event occurs, if the user clicks on the Exit button that button click event occurs Visual Studio .NET is Microsoft’s Integrated Development Environment (IDE) for creating, running and debugging programs (also called applications) written in a variety of .NET programming languages. This IDE is a powerful and sophisticated tool for creating business-critical and mission- critical applications. IDE contains properties window which is used to view and set properties objects. Although Visual Basic is derived from the BASIC programming language, it is a distinctly different language that offers such powerful features as graphical user interfaces, event handling, access to the Windows 32-bit Application Programming Interface (Win32 API), object- oriented programming and exception handling. It helps in creating window application. It was integrated into visual studio in order to facilitate creating server side component and web application. It is the current release VB. It is a fully object oriented language. One of its features is easy to use i.e it makes life easier e.g writing Microsoft Office Automation program. VB is an object oriented language used to write application program that run in window. In the object oriented model, classes are used to create objects that have properties, methods and events. The process of rapidly creating an application is typically referred to as Rapid Application Development (RAD). Visual Basic is the world’s most widely used RAD language. Most of the development in Visual Basic is done in two windows, (the Form window and the Code window). The Form window is where the form is designed. That’s where you put all the text, pictures, and controls for your program. This is often called the interface and is what the user sees when the program runs. The Code window is where the code is written. That’s where you put the directions for the program. A user never sees the code window.