Category Archives: Visual Basic 6 (VB6)

Make a Non-Ole project 100% Stealth

This code will make a Non-Ole project 100% Stealth (Which means that it is invisible on screen, TaskBar, and the TaskList! Original Author: Tucker Nance Attachments File Uploaded Size CODE_UPLOAD2675122000.zip 9/3/2020 3:45:00 PM 2943

API Form

This demonstrates how to create a form using API only. It also creates a edit control (textbox) and a button control (command button). It subclasses the form and the command button and when the command button is clicked a message box pops up. Code is heavily commented and explains to you EXACTLY what the code does. If you… Read More »

Rich HTML

If any of you saw my submission awhile ago that converted RTF to HTML. This has the original code from that post, but also has a function that converts HTML to RTF. Original Author: Joseph Huntley Attachments File Uploaded Size CODE_UPLOAD2683132000.zip 9/3/2020 3:45:00 PM 5279

LoSlider

It is a Slider UserControll Original Author: Loreno Heer Attachments File Uploaded Size CODE_UPLOAD2671122000.zip 9/3/2020 3:45:00 PM 2876

TicTacToe

The game TicTacToe for Two Players Original Author: Loreno Heer Attachments File Uploaded Size CODE_UPLOAD2672122000.zip 9/3/2020 3:45:00 PM 3163

A ‘strReplace’ function.

When called with a string, will search through the string and replace a character of your choice with another character of your choice. For example, if you sent the string:“Hello to the world”And sent “o” as the character to be replaced,and sent “a” as the replacementIt will return you with:“Hella ta the warld”. Original Author: Danny Young Inputs OldString,… Read More »

InitEntry.bas

Excellent functions for saving(SetInitEntry) and retrieving(GetInitEntry) data in ini files. Includes routines for a RecentFile menu (GetRecentFiles, AddRecentFile, RemoveRecentFile) which automatically fill and update your menu. Original Author: Rocky Clark (Kath-Rock Software) Assumptions Copy the code and Paste it into a new Module and name the module something like basInitEntry(InitEntry.bas). Read the comments in the GetRecentFiles() function for help… Read More »

3D Soccer Field

A form that implements a soccer field you can move around in and a grid using line controls only. Perhaps a starting point for a soccer game application; if not, an illustration of how much one can do with line controls. Original Author: Alejandro Migoya Iriarte

Generate Really Random Value

Seems VB generate predefined values when use functions RND and RANDOMIZE(6.0),here is minimal improvement which generate You really reandom value… Original Author: Tair Abdurman Code ‘generate random value between minVal and maxVal inclusive’or return -1 if any errorPublic Function GenerateRandom(minVal As Long, maxVal As Long) As Long    intr = -1    maxVal = maxVal + 1    If maxVal > 0 Then  If minVal >=… Read More »

A Transparent Form That Works!

This is something I made after seeing people request a way to make transparent forms. The nice thing about this though, is that it makes it so that all the controls are still visible! And it works with transparent shapes and lines too! This is a great way to make your programs stand out from the rest, you… Read More »