Home Forum
 

Data Structure in VB

From source code,code examples

Jump to: navigation, search
Arrays and Binary File Access

This project demonstrates how to use a dynamic array to interact with database records and settings stored in a single binary file.

Array-handling/sorting

Pack of 68 VB functions that takes care of handling arrays and sorting them. There is virtually everything you could ask for on that domain. All possible code optimisations have been included into it. Hope you enjoy it.

A Bubble Sort Routine

A Bubble Sort - This is a sort that can be used on small numbers of records. Bubble Sorts file orig.txt in the application path.

A Binary Search

A binary search I wrote for my grade 12 computers class. This opens the file sorted.txt and searches for a record. Much Faster Than a Sequential Search

A Linked List

A program to generate a linked list. Uses the file orig.txt

A Binary Tree

A Program To Generate a Binary Tree, I havn't done the search for it yet.

Array-handling/sorting v3

Well, this is v3 of my previous post. It contains 68 functions that are related to sorting, searching, hashing, moving, copying, adding, deleting arrays (+ some more :). Anyway, I think you get the idea. All possible speed enhancement have been implanted, including LOTS of CopyMemory. Each functions have been vigorously tested AND benchmarked for efficiency.

Address Class v1.0.1

This class is great for use with contact database programs. It's designed to take an address from a multiline textbox and break out the details to individual fields (Street, city, state, zip, country); criteria validation function that check for missing field; auto capitalisation; and fill a passed combobox with all known countries. Also takes multiple fields and returns a formatted address. The test application also demonstrates (for beginners) how to create an Auto-complete a ComboBox; Quick ComboBox search using API; Simple field hilighting methods for TextBox and ComboBox; Avoid complex If/Then structures using bitwise operation and the IIF function. The code is commented and clean - well worth the look. Please vote if you like it...

Arrays and Binary File Access Version 2

This project demonstrates how to use a dynamic array to interact with database records and settings stored in a single binary file. The example stores custom settings and the record count at the beginning of the binary file, then stores multiple database records. To retrieve the data, it gets the settings and record count, then loads the records into a dynamic array which can be interacted with on the form, much like a true database record. If that's not enough, then how about the ability to embed images directly into records!

A ArchiveMaker AND Extractor

It asks for a directory and makes a archive with the content of the directory. It has got a progressbar which shows the status.

A simple Class example that allows Creation of a cube

This is a very simple program that creates a box object from a user-defined Class. The class contains one member function to calculate the cubic area and 3 events that do not let the box get above 20 units in each dimension

Adam's HTML Tree Class

Ever wanted to make that Tag Inspector Tree like in Dreamweaver MX. Well here is my attempt at making one. This is a class that will take HTML code parse it up and build a data tree. Then you can use it to build a tree view or even do HTML source formatting. Let me know what you think.

AVL Tree with Graphical tree

An AVL Tree with graphical tree using shapes, the coding is hurried as this is just one of the requirements for my graduate course. I tried to look for this but cant find one, so here it is. Hope this helps someone... Thanks to Jim Harris of Georgia Southern University for the AVL classes

A Simple Back Propogation Based Neural Network capable of learning and solving 3 XOR problem

This code is to allow you know how to program a backpropogation neural n/w. Highly customizable to see how its works with custom params. If u look at the code u will realize, it can be easily modified to solve many problems.

Agenda Telefonica book of contact phones

Add new contact to the book, search by word and more

Access Data Types and Arrays in a Class

Data Types and Arrays in a Class must be declared Private and normally can't be accessed from outside the Class. This gets arround the problem by using CopyMemory API to copy a pointer to a variable outside the Class. This allows you to read/modify Data Types and Arrays in a Class as if they were Public.

Array Functions

1. Get UBound of Array without Microsoft's -1 Error ------ 2. Get IsEmpty value ie: Returns True if Array is empty

Accurate Pathfinding

It finds the shortest way. Really.

A Dynamic Linked List with basic operations

To Simulate Linked List operations in Visual basic

A General Tower of Hanoi Animation

Animated Solution to move N Disks from the "From" pole to a "To" pole using a "Using" pole. Uses Recursion. Updated with standard and dynamic delay options. (Thanx to Roger)

A Acolyte of AI with 8 Puzzle

This is an attempt to bring some AI programming in VB using A Star (A*) algorithm to solve 8 puzzle problem. This is the famous AI search algorithm test problem to rearrange misplaced cells in a proper sequence on an 3 by 3 Number-Board.

Advanced Stack

This program demonstrates the "Stack" feature.

API Viewer Parsing Engine

Don't have API Viewer freeware program? Don't bother downloading this. However, should you need or want to parse the API Viewer apv files from your code, a module is included in the zip. The parsing engine is fast & pretty well designed. The included interface to show a way of using the engine is not finished & no plans on finishing it. Required: API Viewer *.apv files (not included in zip)

A generic stable indexed data sorting class

With this generic solution you can sort any data that is stored in an indexed data storage structure such as lists, collections, and arrays of all data types, including multi-dimensional arrays and arrays of UDTs ...

A ShellSort with a twist - Revised and even faster! (Update 21 June 08)

This shell algorithm is founded on a very solid performer that was originally developed by vb2themax, and optimized further by several very talented coders, before I twisted a little more out of it in this hybrid version.

Binary Clock (First of its kind in VB)

This is a binary clock. I saw one in Linux and decided to make one myself. It translates the clock digits to the binary using a formula, and then lights up the pictures in the right places. You can start/stop the clock to check if it is correct.

binary tree

creates a binary tree using objects.

Buffer Using Class Module

The code demonstrate a simple buffer data structure, using class module to manage the buffer.

Binary Tree Algorithm - Updated

Its an example of a binary tree, updated to include pre-order and post-order traversals.

Binary File Maker

This is the first submission by me. What this program will show you is how to make a file combiner, and extractor. It shows you how to combine files into one file.. How to extract all files at once, or single files. The code is fairly easy to follow along. It could be refined but thats oka. Its just to show you how you could put all your images, sounds, etc etc etc. Into one file, then in your program only take out what u need.. So its harder for someone to steal your images, sounds.. etc etc etc.

Bubble Sort with Color representation (update)

I have added the ability to sort by the brightness of the RGB arrays. Uses the Bubble Sort method to sort an array of RGB values. Those unfamiliar to Bubble sort: It cycles through each item in the array and decides if it should swap the nearest item with the selected item based on their values. The drawback to this method is the number of iterations it takes to complete the sorting. The maximum number of iterations is the number of items you have in the array you are sorting. Choose to sort by red, green, or blue channels. I actually broke it into three arrays for simplicity.

BitFields-Flags

This little Project checks a "Long" or "Hex" (BitField) value for coded in Bits aka Flags which are set (TRUE).

Balanced Binary AVL Trees Using Dynamic RAM Allocation

ABSTRACT

Dictionary Class

This set of classes extends the functionality of VB Collection into a full-fledged Dictionary. Now, a VB programmer not only can find the stored object by name. Additional features include object search, existense testing and more.

Standard Windows Constants

Simply add this module to your project and you must no longer search the contants for Windows API?s. This is nearly the completest list of Windows-API constants.

Astro Mover

This a great for those that wish to worck with data files. Please get it to get a good idea screenshots does not help.

Binary tree Using Linked Lists

This code demonstrates making an efficient data structure called Binary Trees using linked lists. It has word document explaining how data is stored in a binary tree. Binary trees are the most effecient and fastest way of storing and sorintg data, as this application demonstrates. If this code helps you in any way, then do come back and rate it. Take care n have fun programming. :^)

Structure Object

This class extends the functionality of the Collection object. Extra features include... ability to check for the existance of a key, change "primitive" item values, create named links between items, exchange items and return a subset of items.

By Request (use UDT instead of INI or DB)

I've received about 10 emails asking me to upload another example of UDT (user defined types), so here is is. As you learn how to use UDT, you'll find that there are many ways how UDT can make your (coding) life much easier.

Time and Date Functions

Allows you to find the difference in Time

Enhanced Collection

This code provides an enhanced version of the Collection class provided by VB.

Building Professional DNA Components

Building Professional ActiveX Components (DLL) for Microsoft? Windows? Distributed interNet Applications Architecture (Windows DNA), in this example you maybe understand the use of DataAccess Components and Bussiness Logic Components, my components are compatible with almost every task and programming language: VC++, VB Frontend or ASP/Pearl), I buit this components for an ONLINE (WWW) CD Shop, like CDNow. Written for SQL Server 7.0 and 2000. If you can, write this in VC++ with 100% SQL without the ADO (Performance) Like I do for my work. Hoh Yeah... Long Live THE QUEEN OF HOLLAND. Enjoy. P.S: You NEED the GuiGen.DLL for the ID's, those are 38 long Unique Identifiers, I can't ADD that DLL because you need to pay for it... I'm sorry, but you may replace it with some other (less effective maybe).. Good Luck. Bedoelt voor de goeie Nederlandse mensen. :-)

QuickSort with Multiple Keys

This example performs a quicksort on multiple keys, on an array of UDT's in memory.

calling variables between two forms

This mock login/password application,

Recursive Directory processing

Goes trhough a choosen directory and all sub diectories, lists them and and gives you some info on the files inside, intended to teach people how to recursivly go through filders

Linked List

The linked list component is a component designed to use with objects

Structures - Implementation of a stack,queue and Heap

For all those jaded ex-Computer Science students out there, here's a revisitation of certain data structures which are taught to be useful. Includes a Stack, Queue, and Binary Heap (occasionally called a Binary Tree). These are fast, well tested, and should provide you with useful functionality for virtually any programming you do.

Simple Linked List Example

This is a simple example of creating and using a linked list. A linked list is a data structure where each data item contains a link to the next item in the list (forward link) and optionally, a link to the prior item (backward link). Using a linked list, it is possible to store objects without using a collection, array, or dictionary. Though not used as heavily as they used to be, linked lists are still applicable in certain instances. The example supplied uses a linked list class, to store a list of lines in a 'virtual textbox,' (a programmer-drawn textbox.)

An example of logic gates - for beginners.

This program is a quick example of the three most simple 'logic gates' and

DictionaryTree

Allows you to store data using a self describing method, much like XML minus Attributes. Ex:

Byte2Bin

There are quite a few 'TO-BIN' conversion programs here, but they are waaaaay too slow. Here is a little piece of code that will do 5 million conversions / sec. on my 300. You may do 1 BYTE at a time or whole ByteArrays. Enjoy!

Byte2Hex

Why a Byte-to-Hex code? There is one built into VB. The answer is... Hex$ is waaaay too slow. The approach taken here will do abt. 12.5 million Byte to Hex conv./sec. on my 300. If you looked at my code for Byte2Bin then you know how it is done. You may do 1 Byte at a time or whole arrays. Enjoy!

BinWorks II

BinWorks was cool. Written in PB it provided Bin$, Rotates etc.. Well step over BinWorks here is BinWorks II with much more speed and a few extras. Mind you the Bindll.dll was written in C, but it was written with VB in mind and the emphasis on SPEED. The Functions are provided for BYTEs, INTEGERs and LONGs... Var2Bin, Bin2Var, VarArray2BinArray, BinArray2VarArray, Var2Hex, Hex2Var, VarArray2HexArray, HexArray2VarArray, VarLeftRotate, VarRightRotate, VarLeftShift, VarRightShift, VarBitToggle.

Manipulate Class as a Collection

This code shows you the use of classes. In this very small code you can find some interesting aspects of collections and their disadvantages such as .REmove method and .Add. This program gives you the power to use dinamic classes , and when you remove an item(class), its automatically decreases number of classes in a "collection" of them.

View DXF FIles

This program will open and allow you to view any '2D' ASCII DXF file. It supports BLOCKS, INSERTS, DIMENSIONS, and ALL 2D GEOMETRY types (for R12 and R13). It stores the DXF data in an array, so you have full access to perform manipulation and calculations on the geometry. NO OCX REQUIRED - just pure VB. *Keep an eye out for an update that will hande R14 and DWG 2D files.

SCRSAVER Template

Hey all! haven't posted a new code in months so I guess I will just have to post this. This is a Screensaver template. Just put your screensaver on it and set the configurations, and compile and rename in ("anything".scr) and put it in the windows dir.

cCurrency

cCurrency.cls is a data type for calculations in euro and ewu-currencies. you define your variables as cCurrency and you can: recalc between euro and ewu-currencies, switch between any ewu-currency on the run, etc. documentation in (sorry folks) german only.

Calculator Program

This is a calculator made in VB6. It does a lot of useful functions such as circle area and circumference, support of minus numbers. Addition, subtraction, multiplication and division of numbers. It als does some more advanced functions found on a calculator.

cContactName Class v1.0.1

This class is great for use with contact database programs. It's designed to take a Person's Full Name and break out the details to individual fields (Title, First, Middle, Last, Suffix); criteria validation function that check for missing field; auto capitalisation; and fill a passed combobox with all Titles (Mr. Miss, ...) or Suffixes (Jr., Sr, ...). Also takes multiple fields and returns a formatted Full Contact Name. The test application also demonstrates (for beginners) how to create an Auto-complete a ComboBox; Quick ComboBox search using API; Simple field hilighting methods for TextBox and ComboBox; Avoid complex If/Then structures using bitwise operation and the IIF function. The code is commented and clean - well worth the look. Please vote if you like it...

convert access database to cooma or tab delimited text file

this will convert an access mdb database table to either a comma delimited text file (csv) or a tab delimited text file (txt). I needed to add functions like this to an app at work so I decided to redo it a little and upload the code here. if anyone needs help please email me.

Copy string to UDT

This simple example shows how to read a fixed-length record from a data file and store it in a user-defined record structure.

copystruc

this code copy the struct from db to a new db with a name make in random

CheckBox in MSFlexGrid

If you need to use a CheckBox in a Grid, you have 2 choices, either use the ListView control which is limited in it's ability to set different styles in it's cells, or you can use this little set of fuctions.

C4 Mp3 Compiler

C4 MP3 Compiler MP3 file to an Self Playing MP3 Executable file, wich means no need for an MP3 Playing SW like Winamp / WMP etc., based on the popular MP32EXE Sw.

Compare Arrays

It takes two arrays, compare them and put the values from Array #1 that does not exists in Array #2 into Array #3, as well as it will check Array #3 so that it won't put in dupes either.

cookie deletion utility in one click!

I made this utility originally for work, where they needed a program that deleted selected cookies from a users computer due to the way one of our websites was storing bad cookies on the users computer. The code has been modified to delete all cookies on a users computer. You can change the code to find only selected cookies and delete them if you want.

BinWorks

Well it's about time. VB does not provide a Bin$, Shift or Rotate function. The

Change case with strconv

No comment

Custom Data Type Collections

I decided to post this after someone recently submitted an article that mistakenly said that Visual Basic collections are really only good for storing strings and could not handle Custom Data Types. If you try to add a user defined type to a standard collection you will get an error message stating that "only user-defined types in public object models can be coerced to or from a variant...". It's a little cryptic but what that basically means is you have to define the user defined type from outside of your application. This code will show that you can do it, but you have to know how. I hope someone can benefit from this.

questions using array

By using array this code is perfect for creating a question and answer thingy that can be used for applications like Computer-Aided Instructions or (CAI)

CSTACK CLASS

!! UPDATED and IMPROVED !!

CQUEUE_CLASS

Simulates a Queue environment to hold a data array. This class module provides the basics of a Queue, and also includes a rich set of methods for copying, searching, replacing, removing, switching, reversing (and lots more) the data in the Queue. Please rate this code!!

Custom Data Control

Update: You can now insert any kind of file in database, change the password of a database and many others improvements

Collection Item Keys
Cyclic buffer (queue)

This is an object-oriented implementation of cyclic buffer/queue

Mouse Finder

Locate Your Mouse (X,Y) coordinates

Queue in Vb

A queue data structure, in the form of an object.

Create your own data types - A basic User Defined Type tutorial

Explains how to create your own custom variable packages that store various data types in one variable and display the elements in the IDE drop-down list while coding. This is a seldom used but very powerful data type in Visual Basic.

User Difined Types

Explains and shows how the User Difined Type (UDT) works and can be used in your application.

Library of Array Routines

I use arrays all the time, so I thought I'd put the functions I commonly use together into a library. Easy to read code. Routines include:

Rotating the Index in a Control Array

Have you ever wondered how to take a collection of objects in a control array and have them rotate? Well, this is basically what this code is designed to do. Just take the functin "RotateIndex" and copy it somewhere into your module and you can use it over and over again!

Non-Volatile RAM (using disk files)

Conceptually, non-volatile RAM is any RAM (random access memory) that is not lost because the memory device loses (external) power. The NvRam class implements this in a primitive but powerful way: by writing to and reading from a data file in real time. In principle, your code need only identify the location in this "memory" (as in an array) that a given variable is stored in and the class does the rest.

Create your own custom parameters list

Ever wonder how to create your own custom list of parameters for one of your functions? You know, like the MsgBox options list with items like vbQuestion, vbExclamation, etc? This article shows you how. It is easier than you might think.

XML Engine (classes and demo)

The XML Engine is a set of classes designed to make it easy for your programs to parse and construct XML.

dbase III module

Allows the user to directly manipulate the contents of a dbase III compatible file.

DAO Database Example

A generic, expandable project that can create a

Dynamic Multidimensional Arrays

This is a fully commented simple example of a two-dimensional array with rows and columns just like a spreadsheet in a program like MS Excel.

Datafile Class

Reads/Writes data (Strings, Bytes & Longs) to an binary file. Very easy & quick to use. Strings can be any length, up to 255 characters and Longs are converted to 4 bytes before writing. There is an example form to help you get started. UPDATED: Increased speed & added support for fixed length strings.

Dynamic Stack

This is the code for a Dynamic Stack. A stack is a LIFO (Last In First Out) structure that stores data. The last data that is 'pushed' on the stack is 'popped' of first. If you're have experience with ASM you'll know what a stack is. Most people create a stack by using an array. Although it is possible, creating a new stack (with the help of an array) is slow because you have to use ReDim. My Dynamic Stack allows new stacks to be created at run-time very easily. Also because this stack stores the data in 'true' memory it is much faster than an array-based stack. Furthermore, it has an event-driven error system. At this time, it can only store unsigned, non floating-point data. (i.e. no fractions and negative numbers)

Do you know how slow RND is in a fast application loop?!

I write quite a few high FPS games/demos and they often use RND in the main application loop. Often they don't need to be completely random. I've noticed how slow RND is and I thought I'd share it with you - as well as a FAST solution.

DownRight.xla

I build this add-in to help me change the direction of the data on a spreadsheet.

Dijkstra PathFinding in Arbitrary Graphs and Raster Images

This is an efficient implementation of Dijkstra's algorithm using a Linked List and a Priority Queue (Binary Heap). Unlike most other path finding implementations found in PSC, this application maintains a topological structure to store and navigate through the graphs. Can import user defined graphs, tile maps and images.

DataBaseCompare1

Compares two given database, no need to scan all field/columns changes.

DNS - Domain Name System

That code module will request and get a ResourceRecord. You have got to pass a hostname to the operation and you will get an IP-Adress. Or you give the email-server enquiry a relevant email-adress, to find the right email-server. This module demonstrates you, how DNS (Domain Name System), ResourceRecord, QName and compression algorithm are fit together in the DNS-packet. DNS based on Port 50 UDP-module. The module features a simple namestorage which save requested ResourceRecords, to save time for future enquiry.

Database Chachin system by (Link List)

Retrieve data from database and save it into cahce system for using again

Excel Class - write to an XLS file without DLL's or Excel automation

Writes an Excel BIFF 2.1 spreadsheet file DIRECTLY. No external DLL's or Excel automation needed. Great for exporting data from your application to an Excel spreadsheet without the overhead of JET or ADO.

Example: VB to ASM (Could be used to make your own programing language)

This code shows how to convert two VB commands into ASM, Msgbox, and the End command. Sometimes your computer may act werid if you fool around with the ASM to much. Just simply Shut Down then turn your computer back on. You need to have MASM installed to

eight_queen

solve the 8-queen problem graphically

EventList

With this code you can create two eventlists: one for short times (millisecs) and one for long times (several days, hours).

CASE 1 - 4 OF INTERPOLATION

THIS CODE CAN BE USED FOR FINDING ANY VALUE FROM A GIVEN RANGES...IT APPLIES THE THEORY OF INTERPOLATION.

Extract Rectangles From Regions

Adding a rectangle to a region is easy: CombineRgn. Ever want to get the rectangels out of a region easily? Here is my solution. I needed to find a way for a project at work, but gamers may also be interested. Keep this one in your toolshed.

ESRI Shape File Analyzer

'===============================================================================

Excel File format (BIFF) Reader

Ever wanted to extract data from an Excel file without the use of a clunky Excel object? BEEF is a preliminary class for reading data from excel files. Based on OpenOffice documentation (included), BEEF can currently only read BIFF8/8X files. This is a beta app, and only basic data gathering is implemented.

File Copier with Binary

This code gives a sample for using Binary Access

Fixed-length Queue Class

A fixed-length queue class. I used this for keeping track of the trail of a cursor. But you can use it for histories, MRU's and so on.

Finnaly Connect to a SOCKS 4 server via VB.Explained

Ok this code will connect to a sock server.

Finnaly Connect to a SOCKS 4 server via VB.Commented

THis programm connects to a SOCK 4 proxy server and tell him to make a onnection with another pc.

FIFO,LRU,LFU,WorkingSet

Idemonstrate the common memory replacement strategies such as FIFO, LFU, LRU, and Working Set Algorithm

FormX

Restrict Minimum/Maximum Window size, Toggle Window to be Always on Top & Anchor Controls for easy Window resizing.

FYI: Serialize MultiDimensional Arrays

Small updates & converted to Class Module. Maybe usercontrol writers might find this useful; other than that? The attached code is a bunch of memory manipulation to convert/serialize any dimension array into a single dimensioned byte array, primarily for storage into a property bag. The routines also convert that single dimensional byte array back into the same mulitdimensional array it came from; maintaining all array attributes. I would think good knowledge of how various data types are stored by VB would be needed to fully understand the code. P.S. No screenshot because there really is nothing to show - 1 button. 13Dec06::Patched. Logic to determine if a passed string array contained fixed or variable length strings was incorrect.

FYI: SafeArrays - Understanding Them

A little project to help explain how to read SafeArray structures just from the pointer. The project shows how you can determine if the array contains longs, dates, variants, etc, the number of dimensions, and more. Additionally, the code does not use VarPtrArray API to get the SafeArray address - neat trick. This is not groundbreaking code, but would be of interest to those that like the behind the scenes stuff. Included are "how to's" on creating your own and using them.

Fornextstructures

this simple program demonstrate the used of for next structures.i used this on my examination class.i hope you enjoy it.pls email me for more info

FIFO OPTIMAL ALGORITHM

To show on how to process FIFO and OPTIMAL algorithm!

Gamasort, an improved Radix Sort Exchange Algorithm in Vb
  • This is a Radix Sort Exchange routine which will work only on
Get Table Structure

Get Create table statement from DB2 iSeries Server

GCF (Game Cache File) File Archive Reader

Example of Reading GCF File structures. It will read all Informations inside the GCF Archive. The GCF archive is used by Steam (Valve). Its right now not able to extract files but it will come any time when i have more time for this. Please use it for personal purpose only.

Generic Array Manipulator

Controls inclusion/exclusion/search in arrays of any type of data (including objects). Used mainly for non ordered arrays, but works with ordered arrays as well, though not using best algorithms. This is a useful module for dynamic arrays.

HIve - Alternate for Collection and Dictionary

Hive

How to sort a Collection

Simple example shows how to sort the contents of a collection, not very fast, but okay for less than 300 items or so.

Hexa to decy; decy to hexa

This code shows how to convert hexadecimal number into decimal number and vice versa. It is very easy and you can use this method of conversion also with another numeric systems, for example with binary to decimal, etc.

Huffman Coding Explanation

How does HUFFMAN Coding Works? Computers store information in zeros and ones: binary ?off?s and ?on?s. The standard way of storing characters on a computer is to give each character a sequence of 8 bits (or "binary digits") which can be 0?s or 1?s.

Heap Sort Using Priority Queue

A heap sort is an O(n*log(n)) sorting algorithm using a priority queue implemented as a binary heap. The binary heap is stored as an array so there is no space overhead involved with pointers as there would be in any other tree (yeah I know VB can't do pointers, which is why it isn't suited very well for making tree structures). Make sure you compile the program first. Compiling it makes the sort significantly faster. Also, note that the vast majority of time spent is spent adding the items to the list - not sorting the items.

Ip Chat v 1.0

Ip Chat is a unlimited conenction chat server or a chat room that holds over a 100 people all on a winsock control anyone can host or join a room the host has the ability to kick or ban a user by banning the ip address

Images-in-a-Book

Create Album of Images and show as a book. Requires Windows XP

icon in menus

WANT TO PUT ICONS IN YOUR MENUS? THIS IS ONE OF THE MOST COMMON PROBLEMS BEGINNER OR EVEN INTERMEDIATE PROGRAMMERS WANTED TO SOLVE. NOW, HERE'S THE EXACT ANSWER TO YOUR PROBLEMS. I SHARE WITH YOU HOW TO PUT ICONS IN YOUR MENUS IN THE SIMPLEST WAY, FEW LINES OF CODES AND 1 FORM ILUSTRATION. RATE ME.

Jet Data Base Strucutre Update program

This little app update the tables and queries of a jet database to reflect those of the source database. It adds tables/Queries and modifies Tables/Queries in the target to that of the source. NOTE: It will delete columns in the target tables if they don't exist in the source :-)

Knights Tour

This is an itrative solution to age old Chess Knights Tour Problem.

Linked list on steroids

This is a linked list that uses events to search the items in the list. This makes searching super fast. I have not implemented remove or find by key. But i think that you can implement a key retrival the same way i make the search.

Learn about Data Types

You can learn about Data Types

LISTVIEW - copy data from one list view to another.

ok, it might not be too useful but i needed it. basically it copies the contents of one listview on one form to another listview on another form.

LAN chat

It's a LAN based chat, which accepts multiple connections. It uses winsock.ocx to send the messages. You can see of there are users online and see what programs they are running, display a banner on top of the form to display al kinds of msg's like 'join MOHAA' :) or something like that!

Linked List Example in Vb

This program is an exaple of how to use linked lists. each item in the list has a pointer to the next and last item in the list. (a linked list is a load of 'class modules' linked together)

Let's Play with The Registery

This program is a collection of the capabilities of using the Registery

Love Match

Use of Case Statement

Limits on Types

Simple app, just gives you back how big a type can get. For instance, did you know that a string can hold as much data as a double? Which just happens to be 8.98846567431158E+307 different combinations.

Login with user name and Password

Login Form Using Ms Access

LeeRef Deflation Algorithm Computation

First of all, I would like to thanks BLACK Design, for the idea, coz i got an idea too on how to compute my formula for my LeeRef Deflation structure. All there are many different compression algorithms, but we can put them roughly in two categories. The first is text compression and the second is data compression. The data compression can be lossy or lossless compression. Lossy compression means that the file you compressed with this method can never be recovered (decompressed) exactly as the original. It is not good for critical data compression; it is most used on sound, video of picture compression. In lossless data compression is exaclty the reverse. It can be decompressed exactly like the original file. But the algorithm really worth so let?s talk about LeeRef algorithm. If this is good do rate it! http://linuxman.2ya.com/ !! thank...

My Address Book

PLEASE VOTE for this program! This personal address book is an excellent example of the use of sequential data manipulation and the code is fully documented with algorithm for the beginner. It demonstrates the use of the SaveAs and Open Common Dialog boxes. Arrays were used for text entry boxes and for command buttons. User defined Type is declared in the AddressBook form declaration section. Named constants are used to hold the text box and command button arrays. Data entered into the various text boxes is placed in a database file(*_db) OR text(.txt) file in a sequential manner. The data in the default *._db file is automatically loaded when the program is started. The functionality will allow the user to create new data files using the SaveAs Dialog allowing creation of various files such as Friends, Family or business data files.

Macros for all

A Macro that works with any program.

Manejo de archivos / File Control System / Transacction / Records

Implementa un sistema transaccional de registros mediante archivos binarios, usa toolbar, con las operaciones normales de un DataControl.

Manipulating Data using Collection and Classes

Shows how a VB Class and Collections can be used to manipulate data in memory. A very simple example showing some intermediate-advanced stuff of data manipulation.

multi-dimensional array class

multi-dimensional array class based on single dimension array

Non-Recurisive Quicksort

Quicksorts a multidimensional array in place non recursively

A General N Queens (8 Queens) Solution

This is an attempt to bring some Data structure based AI coding in Visual basic.

NM Autorun Builder

This project i made it in one night, and its prupose its to create an autorun file for your cd's, generates a code that will be inserted into an .inf file that later should be allocated on the maind directory of the CD.

NFA2DFA

This Code Can Provide DFA Form OF Any NFA

Number to Words

This code converts number to words up to decillion, anyone feel free to view my code !! gudluck happy programming .

Operand Alignment

Following these few easy steps can improve the speed of your app considerably!

Presidents

Display's Presidents according to the oder they were president.

Phone Book(help me with it)

This is the begining of my phone book code that I want to finish. My teacher hasn't taught me everything that there is to know about the code so it is b\obviously not finished yet...

Pointer2Type

With Pointer2Type and the WinAPI Function RTLMoveMemory you can copy data from a a struct (Type) in a class module to whereever you need it outside the class.

Queue (implemented using a collection)

The code implements a queue data structure as a class module. It abstracts and simplifies the process implementing a queue. A queue is used store items in order of occurrence, and it retrieves those items on a FIFO (first-in, first-out) basis, a.k.a. FCFS (first-come, first-serve).

Queues in Vb

This is an example of a Queue using an array. It is designed to use a priority within the queue.

queen

solve the 8-queen problem graphically

Quicksort Demo

A quicksort is a fairly simple yet quite efficient and fast sorting method for small amounts of data. On my machine it took about 7 seconds to sort 1 mllion longs. The nice thing about s quick sort is that it's entirely recursive. If you're looking for a faster but much more complicated algorithm then try something like a merge sort. This project comes with a module with a simple function Quicksort, which accepts an array of longs, and will return it sorted, and a demo so you can see it in action. It's well commented, and written in such a way that you can just add and use the module to your projects easily.

Replace Tool

Do you think if you have a file like this:

RDY2USE: clsJPEGasm VB class to READ/MODIFY/WRITE a JPEG structure

A selfcontained class based on my class clsJPEGparser to ***READ in a JPEG file ***Parse the underlying structure (segments) ***Get a list with start and size of segments ***Isolate the comments ***Add/modify/remove comments ***Remove some segments on demand (Exif, Adobe (TM) PhotoShop header, all application specific headers, all comments) ***Get important informations (like the TRUE size (width/height) of the image even when there is a Adobe PhotoShop (TM) preview included ..., parseable without errors and so on) ***WRITE out a new JPEG file _____ THIS IS NOT AN IMAGE MANIPULATION CLASS OR SOMETHING TO SHOW THE PICTURE - WE HANDLE THE UNDERLYING (COMPLEX) STRUCTURE OF JPEGS ____ A sample is included --- RDY2USE ___Comments are welcome, votes are motivating ;) __________ LiTe

Undo/Redo Class

This class allows users to implement undo/redo functionality within their own applications. The new and improved version now even includes the "actual" classes ;-)

reaturent

Complete Restaurent Management System

Safe Array

Teach yourself what is behind "Arrays"..(Firstly is an Array Descriptor Ha,ha--)..And how Arrays actually works!

Super Trim

Trim Pro

Stack Class in Vb

This is a class module that provides a LIFO stack for parsers et al. Pretty well commented and comes with a test project to demonstrate it.

structure

check it out , i hope its helpful to u

Safe Array Properties

A little set of routines and a test driver to read table or array properties: whether it is (re)dimensioned or still undimensioned, the number of dimensions, LBound and UBound for each dimension and a few other things that may come in handy. No fuss about skipping around Errors or such, just the proper way to do it.

Sort without sorting (one million elements in 3(!) seconds) Update

This Sort-Class can be used to retrieve the elements in a one-dimensional table of strings in either ascending or descending sequence. The table itself is not altered in any way by this process, rather pointers into the table are returned which point to the elements in the table in the requested order.

use recursion to scan your drive

u just select the target folder ...and the program will scan the target folder for any folder any this and write it in a list and count them

SQL Buddy 2.0

Well, I've submited this guy few days ago, but it was not translated. Now I did more than a simple translation, I've made a multi-lenguage system, that I believe you will like. Don't forget to vote if you like it.

Sliding Panel

Do your forms need more real estate without the use of Tabs or Frames? Then check out this Sliding Panel Container Control. This control offers a fresh look and feel with the ability to “host / contain” subsequent controls. Many of the features of this combination control are customizable (i.e. Backcolor, Frame Shape, Color & Thickness, Rollup Speed, Button Type & Offset, Hosted Controls Dis/Enable, Entire Control Dis/Enable, Transparent/Opaque Backstyle, Frame Thickness, Plus 10 Events!). Suggestions and comments are welcome, as this is the first cut. Tried to update project and PCS deleted the submission, so here it is again (07Jul05) TerriTop.

Simple Interpreter

This is simple interpreter design to executer machine instructions .please read documentation for instruction set

TreeMenu 1.0

TreeMenu is a simple Menu interface that can be customized to display complex info, or to use as a menu system for an application

tickers at all there glory

to show the world how to use "MAERQUEE" the scrolling text function

Tokenizer Class

This class module can tokenize a string using any number of delimeters. Good for text/flat-file databases like CSV. Support for a text qualifier and ability to ignore empty tokens. Allows token add/edit with export. The only module you need is the class module. The rest of the files are for testing purposes only.

Type casting in VB

Type casting implies Types, so that's exactly what we're gonna use.

Text list randomizer! With FULL annotation!

Takes all items from a listbox (or from any source if you modify the code slightly) and puts them in a random order in another listbox! Simple concept, and fully annotated so you can understand exactly what's being done.

TIFF File Info Class UPDATE

This is an updated Release of my TIFF File info class - I fixed a bug with the Offsets for larger files, this was brought to my attention so I fix. The Class is now much faster to process larger files also

Two-dimension Array Class

2-d array class based on 1-d array. More flexible than VB's 2-d array: redim preserve both dimensions, change all bounds etc. Supports all variables including strings and dates. * Final version - now allows redim preserving by setting lower as well as upper bounds, change of array vartype, and includes convenient user type for saving array information.

UDT Calculator

Calculates the length of a UDT (User Defined Type) required to store it in a String using CopyMemory, MoveMemory or any simular API. (So you can easily save it or transfer it over Internet.) NEVER use Len() or LenB() for this, they both return the incorrect length. (Len often returns less bytes, LenB often returns way more)

user-setting handling class

Handles user-settings (or other data) like the SaveSetting sub, but this uses a local file. Support simple encryption, character escaping, sections, setting/section removal. Saves alot of time, very simple to use. A must have in every program =) Good for beginners to use, good for intermediates to learn from. Demonstrates class usage, string handling, class events, properties etc. I have added lots of comments so code should be OK to read.. Enjoy!

Updated Back Propogation neural network with a slight fix

A tutorial and a neural n/w code which solves 3 input xor problem. Can be customized to solve many other problems.

ujXML - Universal Data Container for Middle Tier

Universal Data Container for the Middle Tier. Instead of building bizillion classes for holding your app data - just one class! Holds simple values, multiple table-like structures like recordsets, and tree-like hierarchies. Powerful data processing: navigating, searching (including XPath/XSL search), formatting, SQL-like joins, table lookups, iterators, bookmarking, history navigation, generating HTML from data and templates, tracking changes, building update SQLs, transactional behavior, copy to/from WinForms in one call; IIS-aware: ready-to-use data caching solution; copying parameters from IIS form/query; parsing/creating XML docs - easy as never before. Validation of XML names against preset dictionary. As easy to use as recordset. See it yourself. Zip contains source, docs, and 10+ demo apps. Solution for enterprise apps - tested in several huge-scale projects. Free. For more info visit www.urfinjus.com.

Variable Pointers 32-Bit in VB! Really easy!

With vbpointers32.dll, you can now use 32 bit pointers in vb. A pointer is a

Visual Basic Source Code into HTML format Converter

Have you ever tried to copy and paste any VB source code into MS-word or Frontpage or whatever?

VBP-Code-Objekte

Listet alle Formen und Objekte eines VB 6.0 Projektes zusammen. Diese k?nnen im gleichen Ordner wie das Projekt gespeichert werden.

XML Formater

Formats an XML string properly and returns it as a string.

Personal tools