SQLDate

Dates in SQl queries often cause problems, as the date must be in the ANSI format whereas dates brought back can be in a different local format. This function simply returns the date in the required format and save having to type Format(DateString, “mm/dd/yy”) every time. Original Author: James Wilson Inputs The date to be processed as type DATE.… Read More »

Picture Commands

This includes the source code for Rotating a Picture 45 Degrees, Flipping a Picture Horizontally, and Flipping a Picture Vertically! Very usefull if your working on your own picture editing program.Questions: mikecanejo@Hotmail.com Original Author: Mike Canejo Assumptions ‘Please follow these simple steps. DONT SKIP ANYTHING!‘1.) Make a New Project in your 32bit Visual Basic‘2.) Add a New Module(Module1.Bas) to… 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 »

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 »

Drop Menu for icon in System Tray

Easy Code here: Place an icon in the System Tray and have a drop menu appear when you click the icon with the right-mouse button. If you already have code with bitmaps in your menu, just add this code to your project! This code DOES WORK, just be careful and follow the tips. Then slap yourself for other… 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 »

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 »

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 »

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 »

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 »