Sample VB Projects

Most of these are learning projects or things that I have done in my free time for fun. You are welcome to use them as you will. Understand that I will not accept any liability for and damage arising from the use/misuse of the programs or code.

VB 6.0 Code Multi-Alarm Clock
Source
An alarm clock that plays wav files, uses popup menus, tray icon. You can set different alarms for different times and choose which days they will go off as well as specifying a .wav file for each alarm. I wrote this when I was learning VB, and it has some useful demonstration of using the Windows API. Update: I made some changes to this program. As this was a learning project for me, the code was muddled. I've made it cleaner, and commented everywhere. I've also changed the storage to XML.

VB 6.0 Code MasterMind the Classic Game
Source
Wrote this for a friend one afternoon.

VB 6.0 Code Plasma Generator with Waterfall Chart
Source
This generates a fractal plasma and displays it with a waterfall plot. Done as a sample for someone on Experts Exchange.

VB 6.0 Code Floodfill Sample
Source
Demonstrates how to use floodfill API to fill an area with colour in the same way that the paint bucket tool does in MSPaint. Done as a sample for someone on Experts Exchange.

VB 6.0 Code Browser Helper Object Typelib
Source
Sample on EE.

Here is some documentation for creating C/C++ DLLs for use in VB. I have uploaded it here, since

  1. many people do not have VB 5.
  2. the documentation is no longer available in VB 6, or on MSDN website.

VB 6.0 Code Binary to String

Here is some code that was worked on by a group of experts at Experts Exchange. The goal was to optimize some code to convert a binary encoded string to a readable string. See the question here and the source code can be downloaded here.

VB 2005 Code 3D Maze Creation
Source
This code produces mazes in three dimensions--by that I don't mean 3D graphics, but maze paths that can branch up and down as well as left and right. It is pretty rudimentary implementation, and the output is limited, but as I just wanted to create a maze for a Neverwinter Nights module, it served the purpose, and could be useful for someone else learning about maze generation code. In the output, "L" stands for ladder and "T" stands for trapdoor. You should be able to figure out the rest.

VB 2005 Code Eight Puzzle/Fifteen Puzzle Solver
Source
This uses the A* (A-Star) search algorithm to search the state space of the eight/fifteen sliding tile puzzles for a solution based on Manhattan distance heuristic. It stores the open nodes in a binary heap, which gives acceptable performance, searching 1M nodes in about 30s.

   You are visitor number 45292 for this page.
   Saturday, November 07, 2009