Getting a Reference to a VB?á5.0 UserControl

Visual Basic 5.0 allows you to use UserControls to create ActiveX controls in your projects. The following code snippet does two things: It gets a reference to the form in which a UserControl is placed, and it gets a reference to that control on the form. by David Mendlen Original Author: Found on the World Wide Web Code Dim PControl… Read More »

Get the name of a control at runtime

I’ve recently taken over a project from someone else, and I’ve been left with code that has few naming conventions and a lot of bugs. I often find myself stepping through code wanting to check the value of a field. Unfortunately, I don’t know the field’s name-it could be Name, UserName, NameUser, txtName, and so on. It’s a… Read More »

cIniFile

Complete access to INI files through a simple class module, which works with VB4 16,32 and VB5. This class module allows you to read/write INI values, delete values, delete sections and query whole sections through a simple inteface. Original Author: Steve McMahon Inputs Here is a sample of using the cIniFile class:dim cIni as new cIniFilewith cIni.Path = “C:WINDOWSSYSTEM.INI”… Read More »

Advanced Shape Generator

This program creates awesome random shapes with your given specifications. With this, you may never see the same shape twice, and every one looks great! This I could proudfully say is an awesome program — IMPRESSION IS GUARANTEED!!! Please let me know how you like it. Original Author: Feuchtersoft Assumptions Third version of an evolving function. Email me if… Read More »

Secret Windows functions

This program show how use following functions in VB:arrange windows (tile, cascade); shutdown, reboot, log off windows; restart explorer; force shutdown (no prompts); show Control panels; show display, mouse, keyboard, printers and fonts control panel; change cursor blink speed; swap mouse buttons; disable mouse and/or keyboard; print test page; add new hardware; connect network drive; repaint screen; show… Read More »

Create database user

The following function creates a user. You can execute it under any user you like.dror-a@euronet.co.il (Dror Dotan A’) Original Author: Newsgroup Posting API Declarations const ADMIN_USERNAME = “Admin”const ADMIN_PASSWORD = “adminpass (or whatever)”const SHOWICON_STOP = 16 Code Function CreateNewUser% (ByVal username$, ByVal password$, ByVal PID$)  ‘- create a new user.  ‘- username$ – name  ‘- password$ – user password  ‘- PID$ – PID… Read More »

.INI read/write routines

.INI read/write routinesmfncGetFromIni– Reads from an *.INI file strFileName (full path & file name)mfncWriteIni–Writes to an *.INI file called strFileName (full path & file name)sitush@aol.com Original Author: Newsgroup Posting Returns mfncGetFromIni–The string stored in [strSectionHeader], line beginning strVariableNamemfncWriteIni–Integer indicating failure (0) or success (other) to write API Declarations Declare Function GetPrivateProfileString Lib “Kernel” (ByVallpApplicationName As String, lpKeyName As Any,… Read More »

A DX7 MultiPlayer Tic Tac Toe

This is an example of using DX7 DirectPlay4. Program allows you to connect and play a basic tic tac toe game over ipx, tcp/ip, or modem against another player with the same program installed. This program includes a basic chat program. All of the multiplayer code is done with directplay4. This is a multiplayer tic tac toe game… Read More »

Arvi’s QUAD-BALL A Must See!

This Is A Fully Featured Game. IF YOU PROGRAM GAMES IN VB YOU MUST SEE THIS ! The aim of the game is to save earth (it is set in the future). This GameIncludesOver 60 files, of which 25+ Contain vb-programming !!.It Aslo Includes PicClp32 (ver. 6) For The Vb5 Users, So There Should BeNo Problems Original Author: Arvinder… Read More »