Category Archives: Microsoft

CheckFileVersion

Retrieve the version of a file (EXE/DLL etc). This code should be paste into a module and just called via CheckFileVersion(‘Path to the Exe or DLL’). Original Author: Riaan Aspeling Inputs Path to the EXE or DLL file eg. “C:WindowsNotepad.exe” Returns A Variant containing the version of the file eg. “4.10” API Declarations Option ExplicitPrivate Declare Function GetFileVersionInfo Lib… Read More »

get Font types on computer

This code takes every font from the computer it is run on, and places it into a combo box. (not using printer.fonts but using screen.fonts) Original Author: V. B. Fool Assumptions Must have a combo box called ftype Code ”for loop adds all font types in computer to combo box  fType.Clear  ”clears combo box  For i = 0 To Screen.FontCount – 1… Read More »

Add Quotes

This Function Adds quotes to a filename… especially useful when sendingan arguement to a program (ie a filename) and it has spaces in it (with spacesif shows up as multiple arguements. Original Author: Digital Inputs str is the String to add quotes to. Assumptions No real “user notes” here…except it was a pain to think this one up =)… Read More »

AOL Upper

Application creates a systray icon which has a pop-up menu allowing you to minimize and restore the AOL3.0/4.0 Upload window.Good demo code for systray icon with popup menus no matter what you want to use it for. Also includes my Time Delay code. Original Author: Charles Patterson Assumptions Should compile as is. No warranties expressed or implied. Returns N/A… Read More »

Windows 98 Source Code

The code that makes Windows 98 tik.. 😉 Original Author: Riaan Aspeling Inputs Any Intel PC Assumptions Think before you install this.. 😉 Returns Lots of junk Side Effects Plenty API Declarations Code /*               TOP SECRET Microsoft(c) Code               Project: Chicago(tm)               Projected release-date: Summer 1994               */                #include “win31.h”               #include “win95.h”               #include “evenmore.h”               #include “oldstuff.h”               #include “billrulz.h”               #define INSTALL =… Read More »

QueryUnload

How to prevent a form/app from unloading , even if you use the taskmanager? Then try this code… (It works for me 😉 Original Author: Riaan Aspeling Side Effects Make sure you DO have a way of closing your form/app Code Private Sub Form_QueryUnload(cancel As Integer, UnloadMode As Integer) ‘To cancel the unload make the cancel = true. Don’t… Read More »

Duck Shoot Game

Create your own duck shoot style game, you can even kill your best buddy, just get a picture of him!!! Original Author: Ed Hockaday API Declarations Code Leave Picture1 blank, make Picture2’s picture a “kill picture” (so when the target is hit a bullet hole appears in it) and make Picture3’s Picture the blank target (ie an “unwounded target”)Copy… Read More »

GetWindowSnapShot

This allows a VB program to capture either the screen or the program window.It has been tested under Win95 and NT4.0. It derives from a routine by Dan Appleman (VisualBasic 5.0 Programmer’s Guide to the WIN32 API, page 303) which unfortunately does not work reliably under all conditions. Dan Appleman’s exhaustive preliminary tutorial, though, is all it takes… Read More »

rtf2html-2.1

This code recieves RTF code as output by a Rich Text Box in VB or MS Word. It outputs the equivalent in HTML. It’s in a somewhat BETA form in that it handles a number of but not all of the possible codes. If you encounter a code it doesn’t properly convert just send it to me and… Read More »

B-Spline

Draws a B-Spline over a PictureBox while the user inputs a series of points with the mouse.It also allows to drag the Control Points of the B-Spline to modify it Original Author: Federico Rahal Assumptions ‘Create a new project, Project1 is created by default‘Add a new module and name it modSpline‘‘Change the name of Form1 to frmSpline‘Add a PictureBox,… Read More »