Click here to Skip to main content
15,867,686 members
Everything / Programming Languages / Visual Basic

Visual Basic

VB

Great Reads

by Fredrik Bornander
WPF Implementation of the spinning panel frequently used on the iPhone
by Steve Krile
Fully AJAX-enabled user control used to select names from a database in a drop-down format.
by Graeme_Grant
A Modern Toggle Switch - From mock concept to a full custom WPF control that you can plug into your own apps
by JosipK, Marko Kozlina
C# and VB.NET console applications that demonstrate how to create and send an email reply with IMAP and SMTP protocols in .NET Framework

Latest Articles

by Jo_vb.net
This article and the demo are about getting started using my Schafkopf_OOP VB.NET project.
by CODING_MLD
Expanding and collapsible panels implemented in VB.NET
by Allegra Angelo
Save, read and text recognition of network parameters
by Ralf Meier
This article revolutionizes Shelly device management, providing an updated, efficient, and feature-rich solution for both beginners and advanced users." You will discover new ShellyCom2 features, such as property manipulation using PropertyDescriptor, and a set of valuable helpers and commands.

All Articles

Sort by Score

Visual Basic 

13 Nov 2011 by Patil Kishor
Backup & Restore of SQL Server database using VB.NET
16 Mar 2010 by Bill9603
Many developers use ".cur" cursor files. Using them myself in Visual Studio 2008, they are not the easiest things to work with for many reasons.They are not easy to create without expensive software. (unless you are using the editor within Visual Studio)They cannot easily be ported in the...
1 May 2012 by AspDotNetDev
Call a series of functions until the return value meets a condition without a chained-if or short-circuiting.
7 Mar 2010 by Luc Pattyn
This is an alternative to "Week Numbers According to ISO8601".
9 Feb 2018 by Meshack Musundi
How to highlight TextBlock text using attached properties
22 Nov 2013 by dyma
Sunflower fractal, so that you can play and create a wonderful image
9 Sep 2013 by The Myth
Databinding examples in WPF for VB.NET.
25 Feb 2012 by Sander Rossel
On the importance of Option Strict...
26 Nov 2016 by JamesFaix
Get a collection of all running Excel interop Application objects (not just the active one)
12 Apr 2015 by Jeffijoe
Writing properly formatted, grammatically correct, translatable UI messages
5 Jan 2023 by vblover Programmer
Load Menu from Resource-Only DLL (created by VC++) and Set for Form As MainMenu by API Functions.
3 Jan 2012 by bluesathish
Fastest and most efficient method to insert large amount of records to a SQL Server database from our system generated datatable.
5 Mar 2017 by Jose A Pascoa
3 Jun 2014 by DaveAuld
Using Enum to provide a quick and easy option lists
31 Mar 2013 by Melih Mucuk
Creating a WCF Service with JSON data for use on iOS
11 Oct 2014 by Nosey Parker
How to calculate subnet fast and get active ip-addresses
1 Mar 2011 by Pete Mourfield
Describes how to check for file existence on an FTP Server using VB.NET
9 Mar 2011 by Аslam Iqbal
Very simple way to restore form window to its previous state
17 Aug 2013 by Prince Tegaton
Building a Custom User Control for Messagebox
24 Dec 2014 by Prince Tegaton
This entails how to easily add mobile website feature to your ASP.NET website/app
25 Oct 2016 by Cees Verburg
Writing /reading Unicode Characters and INI files in ASCII format
9 Jul 2011 by #realJSOP
Avoid exceptions when setting enumerators from unknown/untrusted sources.
19 Oct 2010 by Ziv Nitzan
There is also a Visual Studio extention called CodeMaid that has a lot of cleaning options http://bit.ly/diMTaR
7 Jan 2011 by Tim Corey
Learn how to use a dataset object to load a combobox (or other similar objects) at runtime instead of needing to set anything up at design time.
25 Jan 2012 by Sion Cohen
An elegant programmatic solution for having multiple indexers in C#
29 Oct 2013 by Mike-MadBadger
How to discover all the controls on a form at design time for a property editor
15 Jan 2016 by veen_rp
Big lists (>1,000,000 items) can cause out-of-memory errors raised by .NET. Manage them by a List of List(Of T)
6 Apr 2014 by Prabakaran T
Ultimate USB Reset Attribute with powerful option
20 Mar 2011 by RMittelman
Here is a way to do this without using the registry.In the project's properties, Settings pane, add the following settings. You can name these settings anything you want, but use the same setting name in the code shown below:Name: MainWindowStateType:...
24 Jun 2011 by Idle_Force
5 Jul 2012 by Matthias Böhnke
Bug Fixes for Reading Barcodes from an Image - III
18 Dec 2012 by Ahmad Dekmak
In this project we learn how to resign a signed assembly with another one of your choice
3 Nov 2013 by carcabot
Multi Language Switcher Dynamically written in WPF VB.NET using XMLDataProvider
17 Jan 2014 by Neil Siegfried
Double Buffer a List View Control to eliminate all flickering associated with it.
18 Aug 2014 by lorekd
Leveraging the built in LSet statement, along with user-defined types, to implement a class to translate binary data to/from simple data types
5 Feb 2015 by Miller Nguyen
This article will show you how to implement a complete solution of electronic signature by using HTML5 canvas in ASP.NET (VB).
30 Dec 2015 by Tristan9
Better use async / await in web applications
28 May 2016 by Michael B. Erickson
Control the changes to structured data exposes by your .NET objects
25 May 2018 by Clifford Nelson
VBA Code that will take a string and attempt to pull out the company name, street address, city, state, zip code, phone number, and web address
18 May 2022 by Southmountain
How to install and register .OCX components for legacy application
17 Aug 2013 by adriancs
An Office 2010 Style Color Picker for .NET WinForm.
15 Jan 2016 by veen_rp
Geographic coordinates from decimal degree to degrees, minutes & seconds. And vice versa.
17 Jan 2016 by veen_rp
Use and benchmark of coordinate transformation using the C++ proj4 library in VB.NET and C#
19 Jul 2010 by DaveAuld
You can keep your output consistent with how Windows represents file sizes by using the inbuilt function;StrFormatByteSizeThe following code will dump the files from the root of C:\, Call getFilesAndSizes from a button click or wherever you want. ...
19 Dec 2010 by VyReN
Using VB.NET's RichTextBox and fitting all text into the box
2 Mar 2012 by PWFisch
Drag drop multiple selected rows of datagridview with left mouse button
9 Mar 2012 by Manoj K Bhoir
Why another Scroll Bar? The standard ScrollBar is too limited in functionality and I couldn't find a custom control written that did all that I wanted. This is a User Control with Microsoft Office 2007 Visual Style.
29 Mar 2012 by barrd
Fix an exception related to ISupportInitialize.BeginInit and learn why it happens.
25 Feb 2013 by TnTinMn
UpdateDefaultButton - Allows detecting change in ActiveControl
28 Jul 2013 by Mike Meinz
How to use .NET Framework to determine the drive letter of the CD/DVD (optical) drive.
18 Feb 2014 by Shabra
How to use Resx files to internationalize your code
28 May 2014 by Thava Rajan
Copy and insert data at any postion in your datagridview
24 Jan 2022 by peterswinkels
A Visual Basic 6 program demonstrating how to access databases using Microsoft ADO and how to automate Outlook and Excel.
9 Mar 2015 by Gregory Morse
Rendering Qur'anic (complex Arabic) scripts with Unicode in a PDF
3 Apr 2015 by bobishkindaguy
TrackBar that can work with time values, has a nice spotlight for the current value, and won't allow its value to change when the user moves their mousewheel.
14 Apr 2015 by Casey Witt
Function for parsing Microsoft Excel "XML Spreadsheet" clipboard DataObject into .NET Array of Objects
27 Mar 2016 by Jacob Himes
An automated approach to updating business models intelligently, by updating a destination model with a source model only on properties whose values differ.
20 Aug 2015 by LarryCharlton
A VB.NET example of Cortana UI and application service
9 Nov 2015 by veen_rp
A simple, step by step tutorial to set up an MS-Office Excel Ribbon, launch your own .NET applications from Excel and interact with the spreadsheet values.
16 Dec 2015 by maxitone
Use this if you're working in a fullscreen RDP session - for example - to see new e-mail or appointment alerts
11 Sep 2016 by Avatar2400
This is a simple class that allows you to have message box with checkbox and other small features.
12 Nov 2016 by Mang Irpan
This control is a datagridview that can contain control as its node, and it can contain unlimited node control
2 Apr 2020 by Padanian
A panel switch replica, resembling electro-mechanical toggle of a switchboard box
14 Apr 2010 by marc9889
This is an example of one way to parse an HTML document by using a recursive function. In this example, an html document is loaded from a text file, but the code also demonstrates (in remarks) using a web page as a source file.When the recursive function is called, a conditional statement...
29 Mar 2010 by Daniel Leykauf
Same function and little bit easier:Imports System.Runtime.Remoting.Metadata.W3cXsd2001Class Converter Public Shared Function ConvertToUTF16(ByVal str As String) As String Return New SoapHexBinary(System.Text.Encoding.BigEndianUnicode.GetBytes(str)).ToString End...
3 Dec 2010 by -james
Iterate through the results and extract using system.reflection
3 Feb 2011 by Prerak Patel
Type Character
21 Jul 2011 by Ramanujam Shankar
Remove the triangle and star symbol from the row header in a DataGridView.
23 Jul 2011 by #realJSOP
I wouldn't create a class for this. I'd make it an extension method, and then do this:public static class String Extensions{ public static string Reverse(this string value) { value = // do your reverse code here; return value; }}// Usage:string x...
15 Apr 2012 by andrewbb@gmail.com
Includes most API functions except for graphics.
8 Jun 2012 by pdoxtader
Use DeviceIoControl, QueryDosDevice and WNetOpenEnum to get information about your system.
13 Sep 2012 by CorvetteGuru
Backup Stored Procedures in SQL Server.
9 Nov 2012 by miteleda
Copy DataGridView contents to clipboard regardless of current selection.
29 May 2013 by Surendra Adhikari SA
Implimenting a message box that closes automatically using thread.
14 Jun 2013 by Mike Meinz
Source code to demonstrate the creation of a new task in Windows Task Scheduler.
24 Sep 2013 by terry.corridan
This code processes a Click or a DoubleClick event.
24 Sep 2013 by Mike Meinz
PartnerTech provides a 32-bit DLL and a 64-bit DLL for communicating with the CD-7220 Series Customer Display in true USB mode. This tip demonstrates a .NET class that can be used to provide an easy way to access the PartnerTech-provided 32-bit DLL.
11 Oct 2013 by heemanshubhalla
How to use Masked Textbox control in .NET
25 Apr 2014 by Frankxcid
Class that allows you to programmatically create an Open XML Excel spreadsheet
24 May 2014 by CHill60
Allowing a User to cancel a Form when Validation is in place and invalid data has been entered.
27 May 2014 by Taucher Christoph
WindowsForm Textbox with custom Autocomplete function
14 Feb 2015 by DerStauner
With this library it is possible to query datatables with SQL commands.
11 Mar 2015 by Duncan Edwards Jones
How an event sourcing / projection based system allows you to fully unit test the business code the application will use without mocks
24 Jan 2016 by David Vanson
How to make a video converter that shows the conversion progress to the user using ffmpeg
4 Oct 2015 by Member 12032084
.dll for making the FTP management with VB.NET easier
14 Dec 2015 by bradyguy
Don't send your mail out using the wrong account
6 Jan 2016 by mycenean
Creating a simple color selector dialog
25 May 2016 by Mr. xieguigang 谢桂纲
Generate markdown from your nuget package
28 Nov 2016 by Zebedee Mason
Or why not both? This shows how.
16 Mar 2017 by Robert Bettinelli
Easy JSON Recursion in VB.NET with nested levels
4 Mar 2018 by MarioRainer
Here is a simple way to sort the datagridview by Multi-Columns
7 Oct 2019 by Florin Pănescu
This example shows how to use SharpCompress library with TreeView & ListView.
4 Mar 2021 by jkluge
Fast reading/writing of bitmap data in VB.NET using pointers
11 Jan 2022 by Jo_vb.net
My idea was to host a WPF user control with Ribbon within a WinForm VB.NET project and try to use MVVM pattern.
23 Oct 2023 by Jo_vb.net
How to get started using the MVVM Toolkit
5 Mar 2010 by open-collar
Download source (55.5 KB)IntroductionThe "using" block in C# and VB.NET can be used as a high-level language construct, not just as a way of tidying-up. In this article I show you how to capture and restore state using constructors and disposers.BackgroundIn any substantial...