Category Archives: Visual Basic 6 (VB6)

ConvertRoman

Takes a roman number and convert into decimal. Original Author: Francesco Meani Inputs Inputs a roman number. Returns Returns a decimal number. API Declarations Code Option Explicit’Valid roman numerals and their valuesPrivate Const M = 1000Private Const D = 500Private Const C = 100Private Const L = 50Private Const X = 10Private Const V = 5Private Const I =… Read More »

Resizer OCX

An OCX that Resizes controls on a form that is resized. This OCX also has a property to change fontsizes. You can also (through a controls TAG) tell the OCX to NOT resize certain controls… Original Author: Timothy J. Ward Attachments File Uploaded Size Resizer_OC14590910142002.zip 9/3/2020 3:45:00 PM 8865

Sort Array

Takes a string array and sorts it alphabetically. This can be used to sort a listbox without the sorted property set to true. The code is heavily commented. Original Author: Joseph Huntley Inputs strArray()strOne, strTwo Returns A string array that was edited by reference1 or 2 Side Effects n/a Attachments File Uploaded Size CODE_UPLOAD1065.zip 9/3/2020 3:45:00 PM 3799

Create a demo version of an app, copy protected

This code demonstrates some techniques you can use to create a demo or shareware version of your app, based on the installation date and/or how many times the program has run.It features a copy protection: the user sends you a code, and you pass him a registration code to unlock the app, making it a “full” version. Original… Read More »

CD Tray

Creates CD icon in the System Tray which the user clicks on to Open or Close the CD tray. Demonstrates Sys Tray icons , Windows function calls. Uses Class Modules for Object Oriented approach.Much Thanks to Pierre-Alain Vigeant for my (shameless) use of his CSysTrayIcon class.Cash funds for use of project appreciated but (sadly) not nessesary. Original Author: Da… Read More »

Color Lab v2.0

Updated! New features & bug fix. View colored text on chosen color; View/Edit HTML & VB hex codes; View/Edit RGB & HSL values; sample colors from the screen (point or average); pick from standard color dialog (saves custom colors); Blend two colors; adjust brightness of color. Easy to use! Source code is commented. With thanks to Paul Mather… Read More »

clsQuickSort

Generic sort class. Works with any in memory structure and will sort in any order. Does this by exposing two simple to code events: isLess and SwapItems. Original Author: Mike Mestemaker API Declarations Code Option Explicit’ QuickSort class” To use this class, you must do a bit of planning: First,’ in a form or other object module (not a… Read More »

Yahtzee Deluxe

Full game. Looks good, clean. Has all the rules of the original game. Complete with an undo play, sounds, .chm Help file with included help fileproject. All source code and graphics included. Already compiled as well.This is a complete program with all features included already enabled. Very well documented source code for newbies. Nearly every line commented. Next… Read More »

Change Form Shape (very easy and comfortable)

Make your form shape like the items placed on it.I saw a code posted a view days ago, this code made the form shape like SHAPE-Controls painted on it. But this OCX not even recognizes Shapes. It also recognizes Buttons, Check-Boxes,….. if you want it to do. Original Author: Psycho Assumptions Register Psycho.OCX and but a the OCX on… Read More »

Install Windows NT Service

Install a Windows NT service on a local or remote server. Configure how the service is installed. Requires Windows NT and administrator rights. Original Author: Matthew Ruffell Inputs ServiceFileName [string] = binary service file path and name, ServiceName [string] = name of service, DisplayName [string] = unofficial name of service, Interactive [boolean] = communicates with desktop, AutoStart [boolean] =… Read More »