0% found this document useful (0 votes)
2 views4 pages

CPE 101 Visual Basic Programming

Visual Basic is an object-oriented programming language developed by Microsoft, designed for creating type-safe .NET applications with an Integrated Development Environment (IDE). It offers features for user interface design, debugging, and file management, along with a variety of controls for user input and display. Visual Basic for Applications (VBA) is a component used in Microsoft Office applications to automate tasks and create custom forms.

Uploaded by

Joseph
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
2 views4 pages

CPE 101 Visual Basic Programming

Visual Basic is an object-oriented programming language developed by Microsoft, designed for creating type-safe .NET applications with an Integrated Development Environment (IDE). It offers features for user interface design, debugging, and file management, along with a variety of controls for user input and display. Visual Basic for Applications (VBA) is a component used in Microsoft Office applications to automate tasks and create custom forms.

Uploaded by

Joseph
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd

Visual Basic

Complete summary of Visual [Link] features and basic controls. Info on the

working environment. Short note on Visual Basic for Applications and its file

extensions.

Microsoft’s Visual Basic is an object-oriented programming language. Creating type-

[Link] programmes is quick and straightforward using Visual Basic. Microsoft’s

Visual Basic programming language is a development of the BASIC programming

language that is meant to be used with an Integrated Development Environment (IDE)

(IDE). Programming languages like BASIC relied significantly on the DOS

command-line prior to the emergence of IDEs. Visual Basic provides a simple way to

create user interfaces. For efficiency, Visual Basic can communicate with C code.

Visual Basic is not a powerful programming language that allows you to accomplish

anything. Visual Basic isn’t very beautiful or quick. Visual Basic is not a sub

Uses of Visual Basic:


 User Interface Design – (designing UI for applications etc)

 Using the Standard Controls in Visual Basic – (designing and Developing using its easy Drag-and-
Drop IDE for faster and easier development)

 Object-Oriented Programming

 Debugging and error handling in your code – (VB also works as a debugger for other programs, if
a programme runs into an error, we can use VB to Debug the program)

 Managing Files, Folders, and Drives – (Same as Programming with Objects).


 Create graphical windows, dialogue boxes, and menus for your apps.

 Create database-friendly apps.

 Create Internet-based apps and Web-based applications.

 Create graphics-based apps.

Visual Basic Controls


Visual Basic provides a wide assortment of controls for gathering input, displaying
information, selecting values, showing graphics, and more. Table below lists some of
the commonly used controls.

Control Type Description

CheckBox A box that is checked or unchecked when clicked with the mouse

ComboBox A control that is the combination of a ListBox and a TextBox

Button A rectangular button-shaped object that performs an action when clicked with the mouse

Form A window, onto which other control can be displayed

GroupBox A rectangular border that functions as a container for other controls

HScrollBar A horizontal scroll bar that, when moved with the mouse, increases or decreases a value

Label A box that displays text that cannot be changed or entered by the user

ListBox A box containing a list of items

RadioButton A round button that is either selected or deselected when clicked with the mouse A control that displ
PictureBox A control that displays a graphic image

TextBox A rectangular area in which the user can enter text, or the program can display text

VScrollBar A vertical scroll bar that, when moved with the mouse, increases or decreases a value

Working Environment:
Many elements make up visual basic’s working environment:

 The title bar displays the programme title, project name, and programme mode.

 The menu bar is where you’ll find the menus and commands that go with them.

 The tool bar is made up of icons that are shortcuts to commonly used commands. Standard,
formatting, and other toolbars are examples.

 Toolbox: A toolbox with controls displays on the left side of the screen.

 The form designer appears in the centre of the screen, where the graphical user interface elements
(controls) are shown.

 The properties window allows us to change the properties of controls.

 The project explorer pane shows the files that make up the project.

 The layout pane shows the form-icon, which is used to establish the form’s start-up position.

 Immediate window: may be used to test any statement or print the value of a variable.

What are the various VB programming


modes?
A VB programme can be run in three modes:

design: (when creating a form or coding).

When a programme is running, it is said to be in run mode.

When a programme is in break mode, it is said to be in break mode.

Visual Basic file:


A VB file is a project item file written in the Visual Basic language, a Microsoft-
developed object-oriented programming language for use with [Link] Framework.
It provides ASCII text instructions in Visual Basic.

Visual Basic source code files are most typically associated with files having the .vb
suffix. Microsoft’s Visual Basic programming language is supported by their
development tool Visual Studio. Programmers use Visual Studio to develop Visual
Basic code and turn it into executable apps.

Visual Basic for Applications (VBA)


It is a component of Microsoft Corporation’s (NASDAQ: MSFT) heritage Visual
Basic software, which was created to aid in the development of Windows
programmes. Microsoft Office (MS Office, Office) applications such as Access, Excel,
PowerPoint, Publisher, Word, and Visio use Visual Basic for Applications as an
internal programming language.

TAKEAWAYS IMPORTANT
 Visual Basic for Applications is a Microsoft-developed and-owned programming language.

 You may use VBA to construct macros to automate repetitive word and data processing tasks, as
well as to create custom forms, graphs, and reports.

 VBA is a component of Microsoft Office; it is not a standalone product.

Conclusion:
Visual Basic contains a number of visual tools that may be used to construct
sophisticated applications with a more complex user interface. As a result, Visual
Basic is more than just a programming language. It also comes with a number of
libraries that may be used to create object-oriented programmes. Typically,
programmes entail big development teams working on many projects at the same time.

You might also like