Category Archives: Visual Basic 6 (VB6)

Complete Winsock File Transfer Toolkit!

To every vb coder who once wished his/her program could easily transfer files across the internet (like ICQ): your dream has come true. These 2 simple functions take care of everything!Features:Toolkit provides both sender and receiver with the option to accept or decline the file transfer.A window with progress bar shows users the transfer completion level.Either user may… Read More »

Convert Hex to Decimal (32-bit Unsigned)

Converts Hex [0 – FFFFFFFF] to Decimal [0 – 4294967295] using Currency type to avoid the sign bit. Original Author: Larry Serflaten Inputs A valid 1-8 character Hex String Returns A Currency value in the range of 0 – 4294967295 Code Function ConvertHex (H$) As CurrencyDim Tmp$Dim lo1 As Integer, lo2 As IntegerDim hi1 As Long, hi2 As LongConst… Read More »

MaceNET – A fully functional Telnet Client!!

A fully functional Telnet Program designed to give you ease of use and solve your remote access problems. Original Author: Happy Lobster Assumptions ‘‘….—‘ HERE’S WHAT TO DO ‘—-….‘| it may seem long but its worth it |‘|___________________________________|‘‘Making MaceNET for yourself, sorted by ease of use:‘‘1. > Download the VB5 project from:‘‘ http:\www.geocities.comSiliconValleyHub3944‘‘ It couldn’t be simpler than that!‘‘or‘‘2.‘‘… Read More »

Add menu items at runtime! :)

This code adds allows you to add menu item’s on your form while you are running it(runtime :)… Original Author: Erik Tyldum Assumptions ‘Goto the menu Editor!‘Add a menu, and a submenu.‘Name the submenu: ‘mnuTest’ and set its index property to ‘0’ <- Important!‘Then you click OK!:)‘Add a Command Button, named Command1… and paste my code into it, and… Read More »

Form On Top (Your Application)

This ONE LINE of code will make a form stay on top of your application. This is good to use for toolbars, search forms, and so on. This WILL NOT make the form stay on top of all running applictions, only yours. Original Author: Mr Hanna Assumptions Need Two forms, the second form being smaller then the first. Side… Read More »

Check for the Existense of a file

Checks if a file exists.If you have anyquestions fax me at 1(305)847-0621dont forget to visit my website for more codes and full program source codes + forms available for downloading Original Author: Greg G API Declarations none- if this doesnt work go to i3usy.8m.com Code Public Function FileExists(strPath As String) As Integer  FileExists = Not (Dir(strPath) = “”)End Function

cReadWriteEasyReg (Updated Again)

A Easy way to READ/WRITE and DELETE from the registry.I’ve designed this class to be as easy as posible to use.To read write and delete from the registry is actually easy (if you know how). With this code you can be a pro in the regestry without realy working with the nitty-gritty of the API Call’s etc. Hope… Read More »

Sorting by columnheaders in listviews

This allows a user to sort the contents of a listview by clicking on a column header in report-mode. Clicking again will sort descending. Original Author: Adam Hansen Assumptions This assumes that a ListView named ‘ListView1’ exists on a form, and that code exists to put values into it. Also, the ListView style-property must be ‘report’.Paste the code into… Read More »

Code for a basic Pong style game!

Makes a little pong style game Original Author: Matthew Eagar Assumptions Nothin much, just a very basic knowledge of VB programming. Code Dim vmom As Integer ‘holds the ball’s vertical momentumDim hmom As Integer ‘holds the ball’s horizontal momentum Private Sub Form_Load()  Randomize  ‘make the vertical and horizontal momentums random  vmom = 100 + Int(Rnd * 200)  hmom = 100 + Int(Rnd *… Read More »

Access CDDB with VB5

This code reads a CD’s Identification Number and then access the CDDB for a list of Tracks and information about the CD. Original Author: Brian Returns CDDB Information Side Effects Works best with VB6 and could cause VB5 to crash (But it very rarely does that) API Declarations ‘Put the following code in a CLASS MODULE named CCDOption Explicit‘… Read More »