Visual Basic Source Code Samples

VB Source Code Samples

One of the best ways to learn anything is by looking at examples.  That is why this page of Visual Basic Source Code Samples.  Here you will find VB source code for many commonly used functions. Check it out.

Any Version (These functions should work on any version)

Visual Basic 3.0 (VB3)

Visual Basic 4.0 (VB4) 16 Bit

  • addmenu.zip - Shows How To Add Pulldown Menus To Other Programs.
  • apprun.zip - Checks To See If You Have Another Instance Of Your App Running.
  • cddetect.zip - Returns Which Drive The Cd Is On.
  • ctips.zip - Displays The "tip Of The Day"
  • ddemirc.zip - Simple program to talk to MIrc through DDE.
  • dither.zip - Shows how to "dim the screen" like Win 95 does when it asks you to Shut Down.
  • drvspace.zip - Returns The Amount Of Free Drive Space.
  • drvtype.zip - Returns The Drive Type Of The Passed Drive Letter.
  • floatbar.zip - Add A Floating Toolbar To Your App.
  • freedisk.zip - Returns The Amount Of Free Space On A Drive.
  • gauge.zip - Uses A Class Object To Create Gauges.
  • ontop.zip - Places A Form Ontop Of Other Forms.
  • rollup.zip - Example On How To Rollup Forms With Api
  • strchg.zip - String Replace And Delete Functions
  • strdel.zip - String Delete And Replace Fuctions
  • tempfile.zip - Returns A Temp Filename.
  • win95fle.zip - Converts Long And Short Path Names.
  • winfuncs.zip - Returns Windows Or Windowssystem Dir.
  • wordwrap.zip - Wraps Text In A Text Box. Also Shows How To Save It To A File.

Visual Basic 4.0 (VB4) 32 Bit

  • ArrIcons.zip - Arrange The Icons On The Current Desktop.
  • coolbar.zip - An Example Of How To Create A Coolbar Such As The One In Internet Explorer Without Using A 3rd Party Control
  • cregistry.zip - A Neat Class Module To Give Access To The Registry.
  • fade.zip - Fades A Picture Box In Many Different Ways.
  • logging.zip - Log File Functions From Microsoft
  • mmind.zip - This Is A Master Mind Type Game With The Source Code.
  • taskbar.zip - Add Items To Windows 95 Icon Tray. No Controls.

Visual Basic 5.0 (VB5)

  • addressof.zip - Using The Visual Basic 5 AddressOf Operator To Intercept Windows Messages


This Way Back

To The VB Cell

Last Updated: 02/08/01


This page was created and is maintained by Matthew J. West. All rights reserved. If you have any questions, comments, etc. feel free to email me. All pictures are copyrighted and you may not use them without my permission. Thank-You

Search For More Source Code

Google