VB.NET Sample Code
-
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.
-
The Trick to Temporary Files
by Karl Moore
Karl Moore reveals how to save temporary files in... the temp directory!
-
Is an Internet Connection Available?
by Karl Moore
Check if an internet connection is available using this simple code snippet.
-
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!
-
Converting HTML to Text
by Karl Moore
Demonstrates how to use a simple regular expression to remove all HTML tags from text
-
XBrowse
by J P
XBrowse is a small application that allows the user to view and edit XML files as well as extract XSD schema files from the XML document. It is overall a pretty simple program that is based off of a code snippet in the VS.Net IDE.
-
clsFolderBrowser
by MstrControl
Implements the SHBrowsrForFolder capability on a .NET environment.
-
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.
-
Drawing A Color Gradient
by Michael H
How to fill a form or draw text with a color gradient.
-
String Concatenation
by James Crowley
How to join/append two strings together in VB