3D-Stars in a Form

Draws a nice 3D-Starfield in a Form (uses X,Y,Z positions)width a very short codeShades each star depending on the distance. Original Author: Mikael Rickan Assumptions Create an Timer for the form called Timer1 Side Effects None (maybe some flickering) API Declarations Code ‘Dim X(100), Y(100), Z(100) As IntegerDim tmpX(100), tmpY(100), tmpZ(100) As IntegerDim K As IntegerDim Zoom As IntegerDim… Read More »

Credit Card Identification

Determines type of Credit Card by it’s number. Original Author: John Anderson Inputs Card Number as String Assumptions This is based on documents from CyberCash’s home page. Returns Card Type as String Side Effects Is not Year 2061 Compliant API Declarations Code Public Function CardType(CCNum As String) As StringDim Header As String  Select Case Left$(CCNum, 1)    Case “5”      Header = Left$(CCNum, 2)      If… Read More »

Common Dialog API calls

Here are the Windows API calls for the ShowOpen, ShowSave, ShowPrinter, ShowColor and ShowFont (Thanks to Jaen Saul aka SlowByte for his post) dialogs. Also included is the beginnings of the ShowFonts dialog but I am haning some trouble getting it to work. These calls are more difficult to use than the CommonDialog control placed on a form,… Read More »

DateFunctions

Use this module to do many calculations concerning dates. I will maybe add a few more later on.This module inlcudes the following Functions:1. DayOfWeek (Returns the day of the week of a certain date)2. DayOfYear (Returns the day of the year, eg. 31 December 1999 will be 365)3. DaysBetween (Returns the amount of days between two dates)4. DaysInMonth… Read More »

Play “.wav” files using VB

Play WAV files using VB ~ awesome ~ Add sound to your projects!by: EM Dixsonhttp://developer.ecorp.netHUNDREDS of FREE Visual Basic Source Code Samples, Snippets, Projects and MORE! Original Author: EM Dixson Inputs NA Assumptions NA Returns NA Side Effects NA API Declarations NA Code ****************************************************************         http://developer.ecorp.net         **************************************************************** Auhor: EM DixsonThis code shows how to play a wave file from VB.Call… Read More »

Perfect Pause

Pauses an operation while allowing other operations to run. This pause is date and time based. The sleep function freezes your computer. The timer function and timer controls stop at midnight because they return to a 0 value. The perfect pause continues where these stop. It’s highly configurable. Original Author: rbennett Inputs ‘Seconds are inputed as seconds ( 1… Read More »

AutoResize version 2

This code resizes a form and it’s controls (and fonts) according to the users resolution. Original Author: Mark Parter Inputs designwidth, designheight, designfontsizeFor example if you designed your app at 800×600 and Small Fonts then you would set the above variables to 800, 600, 96 (or 120 for Large fonts). Then just sit back and let the code do… Read More »

A must have! Send HTML headers.

This is the data that you must send to a server when requesting an HTML page. If you are using a control such as the Microsoft Internet control then you do not need this. If you are building a source grabber or something like that, then you will need this. Original Author: gHost_44 Inputs at least some form of… Read More »

a clean Text Encryption/Decryption module

This code will take your text and encrypt it so that it is completely non-readable. I am sure that is someone studied the output long enouch they might be able to break the code, but it would be tough. You can see how easy it actually is to encrypt/decrypt text. It cover all basic letters and most special… Read More »

a 10 line encryption/decryption program

This is a encrypt/decrypt program thats only 10 lines long!!!all it uses is 2 simple fonts to encrypt, times new romand for the text and Money for the encrypted text! please tell me if you like it:) Original Author: uh oh Assumptions ‘1 text box‘2 command buttons (encrypt, decrypt) Code ‘add 2 command buttons’add 1 text box’coded by the… Read More »