Detect Inactive Input

This code sample shows how to detect activity or inactivity on the mouse and keyboard. Option Explicit ‘===========================================================’TYPE’===========================================================Private Type POINTAPIx As Integery As IntegerEnd Type’===========================================================’API’===========================================================Private Declare Sub GetCursorPos Lib “user32.dll” (lpPoint As POINTAPI)Private Declare Function GetAsyncKeyState Lib “user32.dll” (ByVal vKey As Long) As Integer’===========================================================’Variables’===========================================================Private posOld As POINTAPIPrivate posNew As POINTAPI ‘===========================================================’InputCheck’=========================================================== Public Function InputCheck() As Boolean    Dim i As… Read More »

Folder Guard

With this code you can create a application that watches specified folders. When someone try’s to access a folder that is being watched, the application closes the folder and displays an error message. Private Declare Function FindWindow Lib “user32” Alias “FindWindowA” _(ByVal lpClassName As String, ByVal lpWindowName As String) As Long Private Declare Function SendMessage Lib “user32” Alias… Read More »

Work with the registry

This short demo program will show you how to use VB6 to work with the registry.  It shows you how to add, read, change, and delete registry entries. Attachments File Uploaded Size 926-20180127-154719-RegINI2.zip 1/27/2018 3:47:19 PM 12487

Proper cased textbox input

This function will automatically adjust the contents of a textbox to proper case, as input is being entered. It’s not really an “in-depth” piece of code. Rather, it is just a simple something to help out beginners. First, a function must be defined, which can be called from anywhere. Place the following code in a module. Private Function… Read More »

ZIPSearch

ZipSearch simulates the Windows search utility and extends on it to include zip file contents. Searches are based on name matching, and can also perform date and size filtering. Limited wildcard characters are supported for matching of folder and file names. Searches within file text supports multi-line, case-sensitive and case-insensitive matching, as well as whole-word-only searches. This tool… Read More »

MyPad PHP Editor

MyPad is a very small PHP Editor, the executable has as size of only 40kb resp. 140kb if not compressed with an exe packer. I wrote this editor because I didn’t find any PHP Editor with a very simple Single Document Interface. The Editor I was searching for should look and behave like Notepad, but should be able… Read More »

API File Copy Demo

API Sample that demonstrates how to use the windows Shell to select any file, then select a directory, then use the shell to copy the file from one location to another, displaying the Shell Copy Progress Box.  A professional way of doing things. Form Code Private Sub Command1_Click(Index As Integer)    On Error Resume Next    Dim i As Integer    Select Case Index        Case… Read More »

Scrolling Background

Here is a graphic sample of my attempt at using BitBlt to scroll a background onto a picture box. The code is very simple to understand anyway hope you find some use for it. Makes use of bitBlt from gdi32.dll.  Attachments File Uploaded Size 923-20180216-035624-ScrollingBackground.zip 2/16/2018 3:56:24 AM 10959

Bytes -> Megabytes Converter Function

Converts a figure represented in bytes to the corresponding figure in megabytes, formatted to two decimal places. With a little modification, this could also be converted into a multi-value converter for kilobytes, gigabytes, terabytes, petabytes, etc. Public Function BytesToMegabytes(Bytes As Double) As Double   ‘This function gives an estimate to two decimal   ‘places.  For a more precise answer, format… Read More »

Use Google Maps in your VB App

This project demonstrates a quick and easy way to add mapping to a windows desktop application (with an available internet connection) using Google Maps as the basis and source for the map. The demonstration application will map a point by either its physical address or its latitude and longitude. Building the application does not require any sort of… Read More »