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
Free Learning
Arrow right icon
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
₹799 ₹2740.99
Paperback
₹3425.99
Subscription
Free Trial
Renews at ₹800p/m

What do you get with Print?

Product feature icon Instant access to your digital eBook copy whilst your Print order is Shipped
Product feature icon Paperback book shipped to your preferred address
Product feature icon Download this book in EPUB and PDF formats
Product feature icon Access this title in our online reader with advanced features
Product feature icon DRM FREE - Read whenever, wherever and however you want
Product feature icon AI Assistant (beta) to help accelerate your learning
OR
Modal Close icon
Payment Processing...
tick Completed

Shipping Address

Billing Address

Shipping Methods
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
Estimated delivery fee Deliver to India

Premium delivery 5 - 8 business days

₹630.95
(Includes tracking information)

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 Print?

Product feature icon Instant access to your digital eBook copy whilst your Print order is Shipped
Product feature icon Paperback book shipped to your preferred address
Product feature icon Download this book in EPUB and PDF formats
Product feature icon Access this title in our online reader with advanced features
Product feature icon DRM FREE - Read whenever, wherever and however you want
Product feature icon AI Assistant (beta) to help accelerate your learning
OR
Modal Close icon
Payment Processing...
tick Completed

Shipping Address

Billing Address

Shipping Methods
Estimated delivery fee Deliver to India

Premium delivery 5 - 8 business days

₹630.95
(Includes tracking information)

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
₹800 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
₹4500 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 ₹400 each
Feature tick icon Exclusive print discounts
₹5000 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 ₹400 each
Feature tick icon Exclusive print discounts

Frequently bought together


Stars icon
Total 9,533.97
VBA Automation for Excel 2019 Cookbook
₹3500.99
Data Modeling with Microsoft Excel
₹2606.99
Visual Basic Quickstart Guide
₹3425.99
Total 9,533.97 Stars icon
Banner background image

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 the delivery time and cost of print book? Chevron down icon Chevron up icon

Shipping Details

USA:

'

Economy: Delivery to most addresses in the US within 10-15 business days

Premium: Trackable Delivery to most addresses in the US within 3-8 business days

UK:

Economy: Delivery to most addresses in the U.K. within 7-9 business days.
Shipments are not trackable

Premium: Trackable delivery to most addresses in the U.K. within 3-4 business days!
Add one extra business day for deliveries to Northern Ireland and Scottish Highlands and islands

EU:

Premium: Trackable delivery to most EU destinations within 4-9 business days.

Australia:

Economy: Can deliver to P. O. Boxes and private residences.
Trackable service with delivery to addresses in Australia only.
Delivery time ranges from 7-9 business days for VIC and 8-10 business days for Interstate metro
Delivery time is up to 15 business days for remote areas of WA, NT & QLD.

Premium: Delivery to addresses in Australia only
Trackable delivery to most P. O. Boxes and private residences in Australia within 4-5 days based on the distance to a destination following dispatch.

India:

Premium: Delivery to most Indian addresses within 5-6 business days

Rest of the World:

Premium: Countries in the American continent: Trackable delivery to most countries within 4-7 business days

Asia:

Premium: Delivery to most Asian addresses within 5-9 business days

Disclaimer:
All orders received before 5 PM U.K time would start printing from the next business day. So the estimated delivery times start from the next day as well. Orders received after 5 PM U.K time (in our internal systems) on a business day or anytime on the weekend will begin printing the second to next business day. For example, an order placed at 11 AM today will begin printing tomorrow, whereas an order placed at 9 PM tonight will begin printing the day after tomorrow.


Unfortunately, due to several restrictions, we are unable to ship to the following countries:

  1. Afghanistan
  2. American Samoa
  3. Belarus
  4. Brunei Darussalam
  5. Central African Republic
  6. The Democratic Republic of Congo
  7. Eritrea
  8. Guinea-bissau
  9. Iran
  10. Lebanon
  11. Libiya Arab Jamahriya
  12. Somalia
  13. Sudan
  14. Russian Federation
  15. Syrian Arab Republic
  16. Ukraine
  17. Venezuela
What is custom duty/charge? Chevron down icon Chevron up icon

Customs duty are charges levied on goods when they cross international borders. It is a tax that is imposed on imported goods. These duties are charged by special authorities and bodies created by local governments and are meant to protect local industries, economies, and businesses.

Do I have to pay customs charges for the print book order? Chevron down icon Chevron up icon

The orders shipped to the countries that are listed under EU27 will not bear custom charges. They are paid by Packt as part of the order.

List of EU27 countries: www.gov.uk/eu-eea:

A custom duty or localized taxes may be applicable on the shipment and would be charged by the recipient country outside of the EU27 which should be paid by the customer and these duties are not included in the shipping charges been charged on the order.

How do I know my custom duty charges? Chevron down icon Chevron up icon

The amount of duty payable varies greatly depending on the imported goods, the country of origin and several other factors like the total invoice amount or dimensions like weight, and other such criteria applicable in your country.

For example:

  • If you live in Mexico, and the declared value of your ordered items is over $ 50, for you to receive a package, you will have to pay additional import tax of 19% which will be $ 9.50 to the courier service.
  • Whereas if you live in Turkey, and the declared value of your ordered items is over € 22, for you to receive a package, you will have to pay additional import tax of 18% which will be € 3.96 to the courier service.
How can I cancel my order? Chevron down icon Chevron up icon

Cancellation Policy for Published Printed Books:

You can cancel any order within 1 hour of placing the order. Simply contact customercare@packt.com with your order details or payment transaction id. If your order has already started the shipment process, we will do our best to stop it. However, if it is already on the way to you then when you receive it, you can contact us at customercare@packt.com using the returns and refund process.

Please understand that Packt Publishing cannot provide refunds or cancel any order except for the cases described in our Return Policy (i.e. Packt Publishing agrees to replace your printed book because it arrives damaged or material defect in book), Packt Publishing will not accept returns.

What is your returns and refunds policy? Chevron down icon Chevron up icon

Return Policy:

We want you to be happy with your purchase from Packtpub.com. We will not hassle you with returning print books to us. If the print book you receive from us is incorrect, damaged, doesn't work or is unacceptably late, please contact Customer Relations Team on customercare@packt.com with the order number and issue details as explained below:

  1. If you ordered (eBook, Video or Print Book) incorrectly or accidentally, please contact Customer Relations Team on customercare@packt.com within one hour of placing the order and we will replace/refund you the item cost.
  2. Sadly, if your eBook or Video file is faulty or a fault occurs during the eBook or Video being made available to you, i.e. during download then you should contact Customer Relations Team within 14 days of purchase on customercare@packt.com who will be able to resolve this issue for you.
  3. You will have a choice of replacement or refund of the problem items.(damaged, defective or incorrect)
  4. Once Customer Care Team confirms that you will be refunded, you should receive the refund within 10 to 12 working days.
  5. If you are only requesting a refund of one book from a multiple order, then we will refund you the appropriate single item.
  6. Where the items were shipped under a free shipping offer, there will be no shipping costs to refund.

On the off chance your printed book arrives damaged, with book material defect, contact our Customer Relation Team on customercare@packt.com within 14 days of receipt of the book with appropriate evidence of damage and we will work with you to secure a replacement copy, if necessary. Please note that each printed book you order from us is individually made by Packt's professional book-printing partner which is on a print-on-demand basis.

What tax is charged? Chevron down icon Chevron up icon

Currently, no tax is charged on the purchase of any print book (subject to change based on the laws and regulations). A localized VAT fee is charged only to our European and UK customers on eBooks, Video and subscriptions that they buy. GST is charged to Indian customers for eBooks and video purchases.

What payment methods can I use? Chevron down icon Chevron up icon

You can pay with the following card types:

  1. Visa Debit
  2. Visa Credit
  3. MasterCard
  4. PayPal
What is the delivery time and cost of print books? Chevron down icon Chevron up icon

Shipping Details

USA:

'

Economy: Delivery to most addresses in the US within 10-15 business days

Premium: Trackable Delivery to most addresses in the US within 3-8 business days

UK:

Economy: Delivery to most addresses in the U.K. within 7-9 business days.
Shipments are not trackable

Premium: Trackable delivery to most addresses in the U.K. within 3-4 business days!
Add one extra business day for deliveries to Northern Ireland and Scottish Highlands and islands

EU:

Premium: Trackable delivery to most EU destinations within 4-9 business days.

Australia:

Economy: Can deliver to P. O. Boxes and private residences.
Trackable service with delivery to addresses in Australia only.
Delivery time ranges from 7-9 business days for VIC and 8-10 business days for Interstate metro
Delivery time is up to 15 business days for remote areas of WA, NT & QLD.

Premium: Delivery to addresses in Australia only
Trackable delivery to most P. O. Boxes and private residences in Australia within 4-5 days based on the distance to a destination following dispatch.

India:

Premium: Delivery to most Indian addresses within 5-6 business days

Rest of the World:

Premium: Countries in the American continent: Trackable delivery to most countries within 4-7 business days

Asia:

Premium: Delivery to most Asian addresses within 5-9 business days

Disclaimer:
All orders received before 5 PM U.K time would start printing from the next business day. So the estimated delivery times start from the next day as well. Orders received after 5 PM U.K time (in our internal systems) on a business day or anytime on the weekend will begin printing the second to next business day. For example, an order placed at 11 AM today will begin printing tomorrow, whereas an order placed at 9 PM tonight will begin printing the day after tomorrow.


Unfortunately, due to several restrictions, we are unable to ship to the following countries:

  1. Afghanistan
  2. American Samoa
  3. Belarus
  4. Brunei Darussalam
  5. Central African Republic
  6. The Democratic Republic of Congo
  7. Eritrea
  8. Guinea-bissau
  9. Iran
  10. Lebanon
  11. Libiya Arab Jamahriya
  12. Somalia
  13. Sudan
  14. Russian Federation
  15. Syrian Arab Republic
  16. Ukraine
  17. Venezuela