Category Archives: Visual Basic 6 (VB6)

TaskManager

Here’s a simple application to function like the Windows Task Manager… Original Author: Found on the World Wide Web Assumptions Start‘ a new project and add the following controls to the form:‘ Control Name Caption‘ ———————————————————-‘ commandbutton cmdRefresh Refresh‘ commandbutton cmdSwitch Switch‘ commandbutton cmdExit Exit‘ listbox lstApp API Declarations ‘for 16 bit (VB3 and VB4-16) use these:Declare Function ShowWindow… Read More »

Midi Input Recorder

NOW IT’S POSSIBLE ON VB!This code INPUTS MIDI DATA, and echo it to a selected midiOut device. Nothing more. If you are not interested in MIDI PROGRAMMING, my advise to you is that, do not waste your time with this.This was hard. BECAUSE: There is a callback function, which Windows calls many times during the recording. You can’t… Read More »

Scroll a larger PictureBox inside a smaller one

This class module, complete with demo project, will allow you to easily scroll a large picture box inside a much smaller one. This can be extremely useful when space is something you have little of. Original Author: dcroft Attachments File Uploaded Size CODE_UPLOAD1448.zip 9/3/2020 3:45:00 PM 6277

CapsLock and NumLock

How to Activate CapsLock and NumLock from Code Original Author: Ian Ippolito (psc) Assumptions The keyboard APIs for VB4-16 and VB3 do not support the byte data type.By changing the Windows constant to Public Const VK_NUMLOCK = &H90, you can use the above to activate the NumLock key. API Declarations Public Const VK_CAPITAL = &H14Public Type KeyboardBytes?á?á?á?á?ákbByte(0 To 255)… Read More »

A CD-Player

A CD-Player with some functions and a cool form. This is a old code I programmed some years ago. A bit of the code is not from me. Original Author: Loreno Heer Attachments File Uploaded Size CODE_UPLOAD7365722000.zip 9/3/2020 3:45:00 PM 23042

DegreesToXYsubroutine

The DegreesToXYsubroutine, calculates the X (horizontal) and Y (vertical) coordinates of any point, measured in degrees, on the circumference of a circle or ellipse. Original Author: Found on the World Wide Web Inputs Pass the subroutine the center X, Y of your ellipse, the degree position,and the horizontal and vertical radii (if they are equal, you’re specifying acircle, if… Read More »

Win95DirectoryPrompt

Prompting the User for a Directory in Win95. Windows’ common dialogs are great if you want the user to select a file, but what if you want them to select a directory? Call the following function, which relies on Win32’s new SHBrowseForFolder function: Original Author: Found on the World Wide Web API Declarations Private Type BrowseInfohWndOwner As LongpIDLRoot As… Read More »

A KeyCode to Strings Converter

It is a function that converts keycodes [probably used in ???_KeyDown events], to strings like “Ctrl”, “Alt”, “F”, “/”, which are recognizable to the end-user. Great for game programmers who have a key configuration form! Original Author: unknown Inputs KeyCode as Integer Assumptions If the user presses Shift+3, the function will not return “#”, but will return “3” instead.… Read More »