Category Archives: Microsoft

CaptureWindows,CaptureForm,CaptureClient,etc…

Screen capture code. Original Author: StonePage API Declarations Option Explicit‘declares to disable PCPublic Const SPI_SCREENSAVERRUNNING = 97Declare Function SystemParametersInfo Lib “user32” Alias “SystemParametersInfoA” (ByVal uAction As Long, ByVal uParam As Long, ByVal lpvParam As Boolean, ByVal fuWinIni As Long) As Long‘global variable for capture settingGlobal Setting As IntegerPrivate Type PALETTEENTRYpeRed As BytepeGreen As BytepeBlue As BytepeFlags As ByteEnd TypePrivate… Read More »

Build a Stateless Class

The example shows how to create a “Stateless” Class. By sending and receiving UDT’s and disconnected recordsets you will find a significant increase in speed with your objects in a 3 tiered application. If you use collections, each time you get/set a property you make a network call. This method reduces network traffic. Original Author: Mark Freni Inputs I… Read More »

Get GUID string

Generates Global Unique ID – when you want to create an identifier which will never repeat all over the word , you will find this usefull. Original Author: Bogdan Chernyachuk Returns Returns Global Unique ID in string format (the same as the format of ClassID written in registry). API Declarations Public Type GUID ‘ a structure for Global Uniq.… Read More »

Kill the Windowz Close Button (X)

This subroutine will disable the Windows 9x/NT‘ close button, also known as the little X‘ button. It’s really useful when you have a‘ form that you don’t want to set its ControlBox‘ property to False. Write this code in a‘ standard module (BAS). Original Author: Ultimatum Assumptions Should be familiar with the Windows API. Side Effects If you’re playing… Read More »

aan Example of Pop-Up menus

Ever wounder how to make those neat pop-up menus like you see when you right click on something? well, here is an easy to follow example! Original Author: Dustin Davis Attachments File Uploaded Size CODE_UPLOAD1193.zip 9/3/2020 3:45:00 PM 2215

TWAIN Scanner

Flatbed scanner, Hand Held, or any TWAIN compliant device can be accessed in Visual Basic with the EZTWAIN DLL (Included free as freeware). I like this much better than the KODAK OCX for scanning. This uses less resources and less coding. Don’t flood me with a ton of questions on this project. Once you use it, you will… Read More »

Disable the Windows Taskbar

Disable the Taskbar Original Author: StonePage API Declarations Dim hwnd1 As LongPrivate Declare Function SetWindowPos Lib “user32” _(ByVal hwnd As Long, ByVal hWndInsertAfter As Long, ByVal x As _Long, ByVal y As Long, ByVal cx As Long, ByVal cy As Long, ByVal wFlags_As Long) As LongPrivate Declare Function FindWindow Lib “user32” _Alias “FindWindowA” (ByVal lpClassName As String, ByVal lpWindowName… Read More »

A function that encrypts/decrypts.

2 functions 1 that encrypts a passed variable(string) and the other decrypts the data(path of file)Mainly used for a single password.The code encrypts each character with a simple formula, the more characters the better the encryption.The limit on the password length is 50 characters. Original Author: m@llot Inputs The encrypt function input is the passed variable which is the… Read More »

Text Box Auto Fill

This simple code allows to make an auto-filled textbox (like an adress box in IE). This example uses an DataEnvironment connection, but it can be easy used in any other cases. Original Author: Timur Assumptions Just place this code into the form module and correct the sub title (e.g. the textbox, which uses this code in my app is… Read More »

Auto shutdown to your computer!

this code auto shuts your computer in the time you specify! you can use it for shutting your computer if you are in a middle of a huge download, you are copying a big file or just doing a long thing, and you don’t want just to sit on your chair and wait… you can write the time… Read More »