Search icon CANCEL
Subscription
0
Cart icon
Your Cart (0 item)
Close icon
You have no products in your basket yet
Save more on your purchases! discount-offer-chevron-icon
Savings automatically calculated. No voucher code required.
Arrow left icon
Explore Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Newsletter Hub
Free Learning
Arrow right icon
timer SALE ENDS IN
0 Days
:
00 Hours
:
00 Minutes
:
00 Seconds
Visual Basic Quickstart Guide
Visual Basic Quickstart Guide

Visual Basic Quickstart Guide: Improve your programming skills and design applications that range from basic utilities to complex software

eBook
€24.99 €27.99
Paperback
€34.99
Subscription
Free Trial
Renews at $19.99p/m

What do you get with a Packt Subscription?

Free for first 7 days. $19.99 p/m after that. Cancel any time!
Product feature icon Unlimited ad-free access to the largest independent learning library in tech. Access this title and thousands more!
Product feature icon 50+ new titles added per month, including many first-to-market concepts and exclusive early access to books as they are being written.
Product feature icon Innovative learning tools, including AI book assistants, code context explainers, and text-to-speech.
Product feature icon Thousands of reference materials covering every tech concept you need to stay up to date.
Subscribe now
View plans & pricing
Table of content icon View table of contents Preview book icon Preview Book

Visual Basic Quickstart Guide

The Visual Basic Family of Programming Languages

People have been programming Visual Basic for over 23 years. Microsoft has deployed Visual Basic in many different environments over the years, including Windows Desktop development with Classic Visual Basic and Visual Basic.NET Windows Forms. Visual Basic has also been used as a server-side programming language in Classic ASP and ASP.NET. Visual Basic for Applications has been used to embed Visual Basic in both Microsoft Office products along with many third-party products. Lastly, many scripts have been used to control specialized hardware or automate administrative tasks. You will walk away from this chapter with a strong foundation to meet your Visual Basic requirements.

In this chapter, we’re going to cover the following main topics:

  • Visual Basic.NET Windows Forms
  • Visual Basic Classic
  • Visual Basic for Applications (VBA)
  • Visual Basic Scripting Edition (VBScript)
  • Classic ASP
  • ASP.NET

Technical requirements

Each Visual Basic family member will have different technical requirements. We will provide installation options and steps in each subsection for the different family members. Some of these products are old and should be installed in a virtual machine (VM) or development machine that does not need to maintain security. All example code for this book is available at the following GitHub repository: https://github.com/PacktPublishing/Learn-Visual-Basics-Quick-Start-Guide-.

Programming with Visual Basic.NET Windows Forms

Visual Basic.NET Windows Forms is a user interface (UI) framework to create desktop applications on the Windows operating system. It allows developers to create visually appealing and interactive applications using a drag-and-drop interface, without needing to write all the code from scratch.

Windows Forms provides a set of pre-built controls such as buttons, textboxes, labels, and menus that can be easily placed on a form to create a UI. These controls can be customized by changing properties such as color, size, and font, and they can be programmed to respond to user input and events.

Visual Basic.NET is a programming language that can be used to write code for Windows Forms applications. It is a high-level language that is easy to learn and use, and it provides a wide range of features to develop complex applications.

Some of the features of Visual Basic.NET Windows Forms include the following:

  • Rapid application development...

Programming with Visual Basic Classic

Visual Basic Classic (also known as VB6) is a programming language and integrated development environment (IDE) that was developed by Microsoft. It was released in 1998 and was widely used to develop desktop applications for the Windows operating system.

VB6 was the last version of the Visual Basic programming language before the introduction of .NET Framework, and it uses a syntax similar to earlier versions of Visual Basic. The language was designed to be easy to learn and use, and it was popular among beginners and experienced developers alike.

VB6 applications can be developed using the Visual Basic IDE, which includes a visual form designer, code editor, and debugger. The language supports OOP concepts, such as encapsulation, inheritance, and polymorphism.

Although Microsoft has stopped supporting VB6, many legacy applications continue to use the language, and it remains a popular choice for small-scale Windows desktop application...

Programming with VBA

VBA is a programming language that automates tasks in Microsoft Office applications, such as Excel, Word, PowerPoint, and Access. VBA is primarily used to automate repetitive tasks and interact with external applications.

VBA is a powerful language that can import and translate data, automate sequences of calculations, and create custom forms and specialized reports. These powers lead VBA to be used by finance professionals and data analysts who work with large amounts of data and perform complex analyses. VBA is a powerful language that allows users to create functions, perform error handling, and use advanced programming techniques such as loops and conditional statements. VBA is also licensed from Microsoft or reproduced by third-party companies. A small sample of applications that host VBA includes WordPerfect, LibreOffice, and CorelDRAW.

Hello, World! in VBA

VBA code is stored in text files with an extension of .bas when exported from the host. Often...

Programming with VBScript

VBScript is a scripting language that is based on the Visual Basic programming language. It is primarily used to create simple scripts that automate tasks in Windows environments.

VBScript is a lightweight language that is easy to learn and use. It is commonly used to automate repetitive tasks, such as file manipulation, data processing, and system administration. It can be used to interact with Windows components, such as the registry, Windows Management Instrumentation (WMI), and Active Directory.

VBScript is an interpreted language, which means that it is executed directly by the OS without the need for a compiler. It can be run from the command line or embedded within other applications, such as Microsoft Excel or Internet Explorer.

VBScript is supported by all modern versions of Windows and is often used in combination with other scripting languages, such as PowerShell and Batch files.

Hello, World! in VBScript

VBScript code is stored in...

Programming with Classic ASP

Classic Active Server Pages (ASP) is a server-side scripting technology used to create dynamic web pages and applications. Microsoft’s first version of ASP was in the late 1990s as part of the Microsoft ActiveX technology.

Classic ASP uses VBScript as its default scripting language, but it can also be used with other scripting languages. Some examples of other languages include JScript and PerlScript. VBScript allows developers to program scripts that run on the server side into HTML pages. This scripting allows for the creation of dynamic content that changes based on environmental variables, works with data in databases, and performs other server-side tasks.

Classic ASP historically was used to develop web applications that ran on Microsoft Internet Information Services (IIS) servers. Classic ASP has often been used with data stored in Microsoft SQL Server, MySQL, or Oracle databases.

Despite being replaced by ASP.NET, Classic ASP is still...

Programming in ASP.NET

ASP.NET is a web application framework developed by Microsoft that allows developers to create dynamic web applications using a variety of programming languages, such as C# and Visual Basic.NET. It provides several features and tools that make it easier to build, test, and deploy web applications.

ASP.NET allows developers to build web applications using different programming patterns, including Model-View-Controller (MVC) and Web Forms architecture. The MVC pattern provides a definite separation of concerns between the three main components in the architecture – model, view, and controller. The model represents the data and business logic, the view is used to display the data to the user, and the controller handles user input and interacts with the model and the view. In contrast, Web Forms provides more of a desktop development approach, allowing developers to create web pages containing server-side controls and events.

ASP.NET provides several...

Summary

In this chapter, you were introduced to six different environments where Visual Basic programming is relevant. Over the past three decades, programmers have used all these methods to solve business needs with Visual Basic. In future chapters, we will build up your understanding of Visual Basic syntax and semantics and apply that knowledge to these six different environments. In Chapter 2, we will specifically look at how we can get data from users as input and send information back to them as output.

Left arrow icon Right arrow icon
Download code icon Download Code

Key benefits

  • Acquire a solid understanding of object-oriented programming (OOP) principles, such as inheritance and polymorphism
  • Develop expertise in maintaining legacy code with increased efficiency
  • Learn to read, write, and differentiate between VB Script, VBA, VB Classic, and VB.NET Code
  • Purchase of the print or Kindle book includes a free PDF eBook

Description

Whether you’re an absolute beginner or an experienced developer looking to learn the Visual Basic language, this book takes a hands-on approach to guide you through the process. From the very first chapters, you'll delve into writing programs, exploring core concepts such as data types, decision branching, and iteration. Additionally, you’ll get to grips with working with data structures, file I/O, and essential object-oriented principles like inheritance and polymorphism. This book goes beyond the basics to equip you with the skills to read and write code across the entire VB family, spanning VB Script, VBA, VB Classic, and VB.NET, enabling you to handle legacy code maintenance with ease. With clear explanations, practical examples, and hands-on exercises, this book empowers you to tackle real-world software development tasks, whether you're enhancing existing projects or embarking on new ones. It addresses common challenges like distinguishing between the variations of the VB programming language to help you choose the right one for your projects. Don't let VB's extensive legacy daunt you; embrace it with this comprehensive guide that equips you with practical, up-to-date coding skills to overcome the challenges presented by Visual Basic's rich history of over two decades.

Who is this book for?

If you’re a software developer or web developer either already engaged in or aspiring to be involved in maintaining, enhancing, administering, and defending visual basic programs, websites, and scripts, this book is for you. It's an excellent resource for beginners in software development who want to learn Visual Basic from scratch.

What you will learn

  • Acquire a solid understanding of object-oriented programming (OOP) principles, such as inheritance and polymorphism
  • Develop expertise in maintaining legacy code with increased efficiency
  • Learn to read, write, and differentiate between Visual Baic Script, Visual Baic for Applications, Visual Baic Classic, and VB.NET Code
  • Purchase of the print or Kindle book includes a free PDF e-book

Product Details

Country selected
Publication date, Length, Edition, Language, ISBN-13
Publication date : Oct 20, 2023
Length: 238 pages
Edition : 1st
Language : English
ISBN-13 : 9781805125310
Category :
Languages :

What do you get with a Packt Subscription?

Free for first 7 days. $19.99 p/m after that. Cancel any time!
Product feature icon Unlimited ad-free access to the largest independent learning library in tech. Access this title and thousands more!
Product feature icon 50+ new titles added per month, including many first-to-market concepts and exclusive early access to books as they are being written.
Product feature icon Innovative learning tools, including AI book assistants, code context explainers, and text-to-speech.
Product feature icon Thousands of reference materials covering every tech concept you need to stay up to date.
Subscribe now
View plans & pricing

Product Details

Publication date : Oct 20, 2023
Length: 238 pages
Edition : 1st
Language : English
ISBN-13 : 9781805125310
Category :
Languages :

Packt Subscriptions

See our plans and pricing
Modal Close icon
$19.99 billed monthly
Feature tick icon Unlimited access to Packt's library of 7,000+ practical books and videos
Feature tick icon Constantly refreshed with 50+ new titles a month
Feature tick icon Exclusive Early access to books as they're written
Feature tick icon Solve problems while you work with advanced search and reference features
Feature tick icon Offline reading on the mobile app
Feature tick icon Simple pricing, no contract
$199.99 billed annually
Feature tick icon Unlimited access to Packt's library of 7,000+ practical books and videos
Feature tick icon Constantly refreshed with 50+ new titles a month
Feature tick icon Exclusive Early access to books as they're written
Feature tick icon Solve problems while you work with advanced search and reference features
Feature tick icon Offline reading on the mobile app
Feature tick icon Choose a DRM-free eBook or Video every month to keep
Feature tick icon PLUS own as many other DRM-free eBooks or Videos as you like for just €5 each
Feature tick icon Exclusive print discounts
$279.99 billed in 18 months
Feature tick icon Unlimited access to Packt's library of 7,000+ practical books and videos
Feature tick icon Constantly refreshed with 50+ new titles a month
Feature tick icon Exclusive Early access to books as they're written
Feature tick icon Solve problems while you work with advanced search and reference features
Feature tick icon Offline reading on the mobile app
Feature tick icon Choose a DRM-free eBook or Video every month to keep
Feature tick icon PLUS own as many other DRM-free eBooks or Videos as you like for just €5 each
Feature tick icon Exclusive print discounts

Frequently bought together


Stars icon
Total 97.97
Visual Basic Quickstart Guide
€34.99
Data Modeling with Microsoft Excel
€26.99
VBA Automation for Excel 2019 Cookbook
€35.99
Total 97.97 Stars icon

Table of Contents

26 Chapters
Part 1:Visual Basic Programming and Scripting Chevron down icon Chevron up icon
Chapter 1: The Visual Basic Family of Programming Languages Chevron down icon Chevron up icon
Chapter 2: Console Input and Output Chevron down icon Chevron up icon
Chapter 3: Data Types and Variables Chevron down icon Chevron up icon
Chapter 4: Decision Branching Chevron down icon Chevron up icon
Chapter 5: Iteration Chevron down icon Chevron up icon
Chapter 6: Functions and Procedures Chevron down icon Chevron up icon
Chapter 7: Project Part I Chevron down icon Chevron up icon
Part 2:Visual Basic Files and Data Structures Chevron down icon Chevron up icon
Chapter 8: Formatting and Modifying Data Chevron down icon Chevron up icon
Chapter 9: File Input and Output Chevron down icon Chevron up icon
Chapter 10: Collections Chevron down icon Chevron up icon
Chapter 11: Project Part II Chevron down icon Chevron up icon
Part 3:Object-Oriented Visual Basic Chevron down icon Chevron up icon
Chapter 12: Object-Oriented Programming Chevron down icon Chevron up icon
Chapter 13: Inheritance Chevron down icon Chevron up icon
Chapter 14: Polymorphism Chevron down icon Chevron up icon
Chapter 15: Interfaces Chevron down icon Chevron up icon
Chapter 16: Project Part III Chevron down icon Chevron up icon
Part 4:Server-Side Development Chevron down icon Chevron up icon
Chapter 17: The Request and Response Model Chevron down icon Chevron up icon
Chapter 18: Variable Scope and Concurrency Chevron down icon Chevron up icon
Chapter 19: Project Part IV Chevron down icon Chevron up icon
Chapter 20: Conclusions Chevron down icon Chevron up icon
Index Chevron down icon Chevron up icon
Other Books You May Enjoy Chevron down icon Chevron up icon

Customer reviews

Rating distribution
Full star icon Full star icon Full star icon Full star icon Full star icon 5
(4 Ratings)
5 star 100%
4 star 0%
3 star 0%
2 star 0%
1 star 0%
kgretalove Dec 17, 2023
Full star icon Full star icon Full star icon Full star icon Full star icon 5
The project examples were helpful
Amazon Verified review Amazon
Seamus Dec 18, 2023
Full star icon Full star icon Full star icon Full star icon Full star icon 5
That's to this book I learned so much and can now understand my teachers lectures. Thank you so much to the author and I would recommend!
Amazon Verified review Amazon
Alliance Software Nov 29, 2023
Full star icon Full star icon Full star icon Full star icon Full star icon 5
In my job I need to juggle many projects and I have been looking for a book to help me with both old and new VB projects
Amazon Verified review Amazon
Mohammed Salah Djaballah Dec 18, 2023
Full star icon Full star icon Full star icon Full star icon Full star icon 5
This VB guide is a hidden gem! No dull lectures, just hands-on fun from the start. OOP made easy, and it's like having a coding buddy by your side.Love the VB variety – Script, VBA, Classic, NET – it's got all the flavors.Whether you're a pro or a newbie, this book gets you. It's not just about code; it's your survival guide in the VB world. Short, sweet, and seriously worth it!MO!!
Amazon Verified review Amazon
Get free access to Packt library with over 7500+ books and video courses for 7 days!
Start Free Trial

FAQs

What is included in a Packt subscription? Chevron down icon Chevron up icon

A subscription provides you with full access to view all Packt and licnesed content online, this includes exclusive access to Early Access titles. Depending on the tier chosen you can also earn credits and discounts to use for owning content

How can I cancel my subscription? Chevron down icon Chevron up icon

To cancel your subscription with us simply go to the account page - found in the top right of the page or at https://subscription.packtpub.com/my-account/subscription - From here you will see the ‘cancel subscription’ button in the grey box with your subscription information in.

What are credits? Chevron down icon Chevron up icon

Credits can be earned from reading 40 section of any title within the payment cycle - a month starting from the day of subscription payment. You also earn a Credit every month if you subscribe to our annual or 18 month plans. Credits can be used to buy books DRM free, the same way that you would pay for a book. Your credits can be found in the subscription homepage - subscription.packtpub.com - clicking on ‘the my’ library dropdown and selecting ‘credits’.

What happens if an Early Access Course is cancelled? Chevron down icon Chevron up icon

Projects are rarely cancelled, but sometimes it's unavoidable. If an Early Access course is cancelled or excessively delayed, you can exchange your purchase for another course. For further details, please contact us here.

Where can I send feedback about an Early Access title? Chevron down icon Chevron up icon

If you have any feedback about the product you're reading, or Early Access in general, then please fill out a contact form here and we'll make sure the feedback gets to the right team. 

Can I download the code files for Early Access titles? Chevron down icon Chevron up icon

We try to ensure that all books in Early Access have code available to use, download, and fork on GitHub. This helps us be more agile in the development of the book, and helps keep the often changing code base of new versions and new technologies as up to date as possible. Unfortunately, however, there will be rare cases when it is not possible for us to have downloadable code samples available until publication.

When we publish the book, the code files will also be available to download from the Packt website.

How accurate is the publication date? Chevron down icon Chevron up icon

The publication date is as accurate as we can be at any point in the project. Unfortunately, delays can happen. Often those delays are out of our control, such as changes to the technology code base or delays in the tech release. We do our best to give you an accurate estimate of the publication date at any given time, and as more chapters are delivered, the more accurate the delivery date will become.

How will I know when new chapters are ready? Chevron down icon Chevron up icon

We'll let you know every time there has been an update to a course that you've bought in Early Access. You'll get an email to let you know there has been a new chapter, or a change to a previous chapter. The new chapters are automatically added to your account, so you can also check back there any time you're ready and download or read them online.

I am a Packt subscriber, do I get Early Access? Chevron down icon Chevron up icon

Yes, all Early Access content is fully available through your subscription. You will need to have a paid for or active trial subscription in order to access all titles.

How is Early Access delivered? Chevron down icon Chevron up icon

Early Access is currently only available as a PDF or through our online reader. As we make changes or add new chapters, the files in your Packt account will be updated so you can download them again or view them online immediately.

How do I buy Early Access content? Chevron down icon Chevron up icon

Early Access is a way of us getting our content to you quicker, but the method of buying the Early Access course is still the same. Just find the course you want to buy, go through the check-out steps, and you’ll get a confirmation email from us with information and a link to the relevant Early Access courses.

What is Early Access? Chevron down icon Chevron up icon

Keeping up to date with the latest technology is difficult; new versions, new frameworks, new techniques. This feature gives you a head-start to our content, as it's being created. With Early Access you'll receive each chapter as it's written, and get regular updates throughout the product's development, as well as the final course as soon as it's ready.We created Early Access as a means of giving you the information you need, as soon as it's available. As we go through the process of developing a course, 99% of it can be ready but we can't publish until that last 1% falls in to place. Early Access helps to unlock the potential of our content early, to help you start your learning when you need it most. You not only get access to every chapter as it's delivered, edited, and updated, but you'll also get the finalized, DRM-free product to download in any format you want when it's published. As a member of Packt, you'll also be eligible for our exclusive offers, including a free course every day, and discounts on new and popular titles.