Category Archives: Microsoft

Enhanced ListView – Updated

A module with 24 functions for enhancing the ListView.Resize columns based on Column Caption, Contents, or ListView Size.FullRow Select, GridLines, CheckBoxes, Allow Repositioning of Columns,Track Selected, One-Click Activate, Two-Click Activate,SubItem Images, Check All Items, UnCheck All Items, Reverse Checked Items,Flat Column Headers, Enhanced Sort ColumnsI’m currently working on Column Header Font effects: Bold, Italic, Underline…I will update the… Read More »

a Geometry Calculator

Need help with geometry?? Well, this thing will do it! Calculate the Area of a circle, triangle, trapazoid, parallelagram, rectangle, square, find the volume of a cylinder, cubes and more! Very simple to use, understand. Also includes formulas so you can do the calculations yourself! Original Author: Dustin Davis Attachments File Uploaded Size CODE_UPLOAD1298.zip 9/3/2020 3:45:00 PM 4927

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 »

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 »

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 »

Add nodes to a TreeView at run time.

u can contact me at haisrini@email.comAdd nodes to a TreeView at run time.(u can drag and drop the nodes with in a tree structure(it will check whether it can be dropeed there or not) Original Author: srinivas Attachments File Uploaded Size CODE_UPLOAD1276.zip 9/3/2020 3:45:00 PM 7355

A Complete screen saver + Scrolling Fading credits

This program demonstrates how to create a screen saver in Visual Basic, it also shows how to make scrolling credits that fade in and out of the screen.The Fading, Scrolling credits:-Useful for end credits for a game etc.Easy to adapt for you own programs.Only one label and one timer are required at design time.Creating your own Screen Saver:-In… 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 »

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 »