Category Archives: Microsoft

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 »

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 »

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 »

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 »

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 »

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 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 »

Show

These graphical example generates 1 to 4 explosions on the screen.Each explosion has 1 to 64 pieces.Each piece has 1 to 9 pixels.Every piece has its own direction (clockwise or not), and has its own rotating frequency. ALL THE PIECES ROTATING!NO API FUNCTION CALLS, JUST the PSET!!!It is a really first project of my own with VB5.Enjoy. Original… Read More »

A 500 forms example……for instance

This is just for expiremental purposes to learn howto instance a form and then how to free memory of theform objects after use. It will try to enumerate 500form objects.Note: Once you reach your maximum memory stack. Thecode will be errorhandled and will tell you how manyforms you can actually instance.I’ll bet that no one can actually get… 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 »