A Dancing Flame tester – Short Code but Cool!

This application will show a dancing flame. DANCING means the flame will beanimated. You can controll the flame. ENJOY IT!Short Code / Specially Cool! Original Author: Jongmin Baek Attachments File Uploaded Size CODE_UPLOAD1414.zip 9/3/2020 3:45:00 PM 35340

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 »

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 »

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 »

Multiple-User Rich Text IP Chat

A multi-user chat server/client that can support unlimited users, and uses rich text in the messages, allowing colors, font-styles and different fonts. The user running the server can kick any person logged in. Requires: RichTextBo control, Winsock control, and Common Dialog control. Original Author: Joseph Huntley Attachments File Uploaded Size CODE_UPLOAD1398.zip 9/3/2020 3:45:00 PM 9841

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 »

Access ODBC DB using SQL and a Data Control

This code will allow you to populate DBGrids and other bound data controls using a Data Control, SQL, and an ODBC DataBase. Original Author: Scott Lewis Assumptions Create a new form with a DBGrid and a Data Control. Set the datasource property on the grid to use the data control. Set the DB name property on the data control… Read More »

add a horizontal scroll bar to a listbox or combo

add a horizontal scroll bar to a listbox or combo box Original Author: VB Qaid API Declarations #If Win16 ThenDeclare Function SendMessage Lib “User” (ByVal hwnd As Integer, ByVal wMsg As Integer, ByVal wParam As Integer, lParam As Any) As Long#ElseDeclare Function SendMessage Lib “user32” Alias “SendMessageA” (ByVal hwnd As Long, ByVal wMsg As Long, ByVal wParam As Long,… Read More »

16 and 32 bit functions to create

16 AND 32 bit functions to read/write ini files–very useful! Original Author: VB Qaid API Declarations ‘****************************************************‘* INI_sm.BAS *‘****************************************************Option Explicit#If Win16 ThenDeclare Function WritePrivateProfileString Lib “Kernel” (ByVal AppName As String, ByVal KeyName As String, ByVal NewString As String, ByVal filename As String) As IntegerDeclare Function GetPrivateProfileString Lib “Kernel” Alias “GetPrivateProfilestring” (ByVal AppName As String, ByVal KeyName As Any, ByVal… Read More »

IsLoadedForm

Tells whether a form is loaded or not Original Author: Luca Faiazza Inputs ByVal pObjForm As Form Returns Boolean value Code Public Function IsLoadedForm(ByVal pObjForm As Form) As Boolean  Dim tmpForm As Form  For Each tmpForm In Forms    If tmpForm Is pObjForm Then      IsLoadedForm = True      Exit For    End If  Next  End Function