Category Archives: Visual Basic 6 (VB6)

(Update) RC4 Stream Cipher (with file handling )

This code offers you a strong encryption with RC4. I’ve tested it a lot and it’s the right implementation of the RC4 cipher.‘You can use this code in your commercial code because it’s not patented!‘I know there is another code that deals with RC4 but my code has nothing to do with this code!‘More infos: sci.crypt Original Author: Sebastian… Read More »

Total Record Count In ADO Recordset

This simple little function just returns the total number of records in a ADO recordset. Original Author: Riaan Aspeling Inputs A ADODB.Recordset structure Returns A Long integer with the total number of records Side Effects I believe it’s not the fastest way of retrieving the information but at least it works. I’d like it if somebody can suggest a… Read More »

Make Form always on top without API !

It automatically makes your form on top until they close or end the program and it is all API free! Original Author: Jake McCurry Code ‘set the timer’s interval to 1Private Sub Timer1_Timer()Form1.ShowForm1.SetFocusEnd Sub

Get a file from a FTP server using winsock.

This function shows how to get a file from an FTP site. Original Author: Kristian Trenskow Inputs Make a form (form1) and insert two winsock controls (winsock1 and winsock2). Then insert a command button (command1) and three labels (label1, label2 and label3). Then you need to add a module (module1), and last you need a timer (timer1). That’s it.… Read More »

Open a text file FAST!

Opens a text file much fast than a “Do While Not EOF(filenumber)” loop. Makesfile load times almost non-existant. Original Author: Timothy Pew Inputs The filename of the file to open. Assumptions The filename that you pass to the function must exist, otherwise an error will occur. Returns The text contained in the file. Side Effects I have yet to… Read More »

Make Your Own FTP Client

Make a simple FTP Client that allows you to read and write to a remote computer Original Author: Vikramjit Singh Inputs The IP address and local file name , path. Assumptions Set Project Refrences to MSINET.OCX before you run the codeOr you could set Project components and check on Microsoft Internet transfer control…then drag the MSINET control onto the… Read More »

Space Shooter Game

Its a space shooter game, ok for all you people who can’t read the address iswww.geocities.com/baja/cliffs/8036/space.html Original Author: Theo Kandiliotis Assumptions LOOKS LIKE A LOT BUT MOST IS JUST STEP BY STEP INSTRUCTIONS:)There are files that are needed. Go to www.geocities.com/baja/cliffs/8036/ space.html to get themIts eaisier to download it but heres the code.There are a lot of objects(mostly pictures… Read More »

Change the Keyboard Speed and Delay

This code allows you to change the Keyboard speed (0 to 31) and delay (0 to 3).. useful in games or as an alternative to using the keyboard control panel. Original Author: Joshua Moore Assumptions In your own code use SetFastKeyboard() to change to your new speed and RestoreKeyboard() to change back to thier previous defaults. Side Effects On… Read More »

Combo_TypeAhead

Allows the VB combobox to have a type-ahead feature like the combobox in Access.If there are any matching items in the combobox list, it will automatically“fill in” the missing portions of the item and select it.This will work for multiple characters, not just the first character of the string.*** This is an expanded version of the original code… Read More »

Changing priority

This code fragment demonstrates how you can get a program to change it’s own priority.Sometimes it is necessary to change the priority of a process from the default.The example that prompted this code was a program I had to launch from a commercial scheduler always defaulted to idle priority. This caused the program to miss it’s processing deadline.… Read More »