VB.NET Sample Code
-
GDI+ Image Encoder and Decoder Info
by Mitch ★
Sample code to display useful information about the built in GDI+ Image Encoders and Decoders. Easily used to display information about any Encoder and Decoder as well.
-
VB.NET Stylise Your Forms like you would with CSS on a webpage
by phill
How to Programatically change properties of all the controls on your form.
-
The Ordinal Number Function
by Karl Moore
Give numbers their ordinals back.... this function automatically returns the correct ordinal; "st", "nd", "rd", "th" depending on the number you give it.
-
SQL Data Provider VB.NET Class
by
This class includes some useful methods for working with Misrosoft SQL Server in .NET simply and quickly.
-
IP2Location Geolocation .NET Component in VB.NET
by IP2Location Inc
IP2Location .NET component that translates IP address to country, city, region, latitude, longitude, ZIP code, ISP and domain name. Developers use this component for projects related to: 1. Display native language and currency; 2. Redirect based on country; 3. Digital rights management; 4. Prevent password sharing and abuse of service; 5. Reduce credit card fraud; 6. Web log stats and analysis;
-
Send File to Recycle Bin in VB .NET
by Walter Steed
.NET version of "Send file to Recycle Bin"
-
Add your Web Link to the Favorites!
by Karl Moore
Ever wondered how to add a internet link to Internet Explorer's Favourites from your app? Here's how!
-
Visual WebGui a unique approach to AJAX development
by Guy Peled
Visual WebGui is not just another AJAX framework but rather a different approach to web application development, specially designed to simplify building highly complex applications like Outlook Web Access (OWA). Visual WebGui makes it possible for developers to create applications that were previously developed only by the "big guys".
-
Doing without Control Arrays
by Brian O'Connell
Many people ask how implement control arrays in VB.Net. The simple answer is you can't. I've created a vb.net project that demonstrates how to create a series of command buttons based on a user selected amount. It then adds these buttons' click event to an existing click event for a control placed on the form in design time. As far as I can tell this pretty much covers what you might want to do with arrays.
-
Flatten That Combo Box, Man!
by Stacey Brown
A .NET class written in VB.NET for your own flat combo box.
-
Priority Queue .NET
by Rasto Novotny
Priority queue is collection like stack or queue. Objects are pushed into priority front in any order, and a priority is assigned to each object. They can be then popped from priority front ordered by priority. It is able to specify if objects with lower priority are popped first or objects with greater priority are popped first.
-
How Big is that File – in English?
by Karl Moore
Not everyone wants to convert 2147483648 to 2 GB in their head every time we want to know how big a file is. Here's an easier way.
-
How to “Snap” the Cursor
by Karl Moore
Learn how to move the cursor position to slap bang in the middle of your control.
-
Virtual Stack
by Daniel Okely
This is an implementation of a stack.
-
List Files in a Directory
by JesusFreak
A little code snippet that lists files in a directory
-
API Samples
by Matthew Taylor
Shows samples of how to use different kinds of APIs. Changing and getting different system settings such as mouse position, beep length and frequency, computer name, user name, drive type, swap mouse button. You will need to create the needed controls on the form before accessing them in code of course.
-
clsFolderBrowser
by MstrControl
Implements the SHBrowsrForFolder capability on a .NET environment.
-
Calculate Age
by James Crowley
How to calculate someone's age from their birth date.
-
Capture a Screen Shot
by James Crowley
Demonstrates how to capture a screen shot of the entire desktop, or a particular window in C# or VB.NET.
-
C# String Functions and Manipulation
by Colin Harman MACITP
Learn how to manipulate C# strings using built-in and custom functions. The code provided shows how to trim, find, search, replace and split strings, convert to upper case and proper case and more.