Category Archives: Visual Basic 6 (VB6)

4 function Calculator with 8 level memory

This is a 4 function calculator with 8 – level memory, it performs calculations Original Author: James Bergeron Assumptions Nothing, it works nicely Returns Values you calculated Side Effects None, I hope 🙂 API Declarations NONE Code Dim calcarray(0 To 3) As DoubleDim holder As IntegerDim operation As IntegerDim decicount As IntegerDim newnum As IntegerDim clearcount As IntegerDim memstorebut(1… Read More »

Copying List Items to the Clipboard

This code is a demonstration of a quick and easy way to copy an entire list (without needing to select them all) or selected list items to the clipboard for pasting into other applications. It simply copies the items to a hidden text box and then uses the clipboard method. Follow the instructions below to see how it… Read More »

32-bit Floating Toolbar (NT & 95)

This code gives you the ability to create a ‘floating toolbar’ within your application. The old SetWindowWord function is only good for 16-bit applications, so it won’t run under a 32-bit OS (like NT4). The API call you should use if you are programming a 32-bit application is SetWindowLong. It works the same way as SetWindowWord, only uses… Read More »

Aprostrophe

Have you ever try so send a string variable to MS Access that haveapostrophes using a SQL Statement? If YES you will get a run time ERRORHere is your solution….A function that formats thevariable before sending it to the database. Original Author: Gaetan Savoie Inputs sFieldString Assumptions This code should be used in your Classes.For example :let say myVar=”… Read More »

Command1_click

Allows you to backup a source file and have the destination file name be the current date. Great for database backups! Original Author: Daniel Bennington Assumptions Create a new form, create a field called text1 and a field called text2. Also create a command button called command1.Change Source directory to your database directory name, change source file name to… Read More »

Easy routine to check/create directories

This very simple routine avoid checking if a correct path alreadyexist before using it and, if not, create it exactly as you want.Imagine you wont to write a log file in a path defined as:C:MyapplicServiceslogsLOG.TXTyou must check before if the directory Myapplic exist andthen check all other subdirectory (Service,logs) before opening thefile For Output. Probably you will use… Read More »

Get IE4 History URLs history folder

This code will open a DAT file in the c:windowshistory folder and pull out all sites visited Original Author: Chris Wells Assumptions For the Index.dat file the displacement is set to 119 for other files I haveset the displacement to 15.For the Index.dat file the delimiter, or search string, is “URL “For other files I have used “Visited: “This… Read More »

Form Resizer Deluxe

Class module for resizing/repositioning controls on a form. See source code for details. Original Author: John Buzzurro Inputs see source code Assumptions see source code Returns see source code Code ”””””””””””””””””””””””””””””””””””””””” MODULE DESCRIPTION:’  Class for scaling/repositioning controls on a form” DATE CREATED:’  10-22-1998” AUTHOR:’  John Buzzurro” COPYRIGHT NOTICE:’  Copyright (c) 1998 by John Buzzurro” NOTES:’ A) To give your form resizing ability:”  1) Create… Read More »

Madcow Test

Do you own a cow?Ever wondered how to tell if it has mad cow sicknessvery funny testalso a few good things to look atbut I recomend it just for a laughPLEASE NOTE: Button code was made and coded by GEEZAthe code entry is called killer button thank youand the idea was got from www.madcow.comI just put it into… Read More »

A Way to Change The Resolution

This is ideal for a game. Many games simply look better or work better in a different resolution. Mostly the look is because whatever resolution you were using on your computer at the time is what the graphics in the game will look best as. This code will simply enable you to set their computer resolution to whatever… Read More »