Category Archives: Visual Basic 6 (VB6)

encryptAll

This simple encryption Function uses Xor encryption and itterative encoding to more securely encrypt a text string. Although the code is not unbreakable, it cannot be broken with a simple key. Itterative encoding ensures that code-cracking techniques, like character frequency study, will not work. It’s as easy as could be. Function can be easily modified to encode more… Read More »

Solitaire Ball Game

A recreation of a classic game called Solitaire. Not the card game but a different solitaire. Your objective is to jump balls to make balls disappear and end up with one ball left. Hard to explain so just download it and try it out. Complete with sounds. Original Author: Jacob Allred Attachments File Uploaded Size CODE_UPLOAD362.zip 9/3/2020 3:45:00 PM… Read More »

Misc. Coding (Hot!)

This code is made for newbies and veterans alike who need lots of different codes fast. Section 1 (Declarations):Global DeclarationsOther Declarations Section 2:FileSaveFileOpenListSaveListOpen Section 3:MakeDirDeleteDirDelFilesInDir Section 4:MoveFileCopyFileDeleteFileExecuteFile Section 5:EncryptDecryptBitEncryptBitDecryptSuperEE (Private) Section 6:DisableCtrlAltDelEnableCtrlAltDelHideCtrlAltDelShowCtrlAltDel Section 7:OpenCDCloseCDPrintBlankPagePrintTextPrintPage (Private)PrintNewPage (Private)PrintEndOfLastPage (Private) Section 8:MakeStartupRegAddToStartupDirMakeRegFile (Private) Section 9:OntopNotOntopInvisibleFormHoleInForm Section 10:ClipboardCopyClipboardGetClearClipboard Section 11:PingConvertIPAddressToLong (Private) Section 12:Code1Code2Decode1Decode2ReplaceC (Private) Section 13:AddSubtractDivideMultiplyToPowerToRootFractionToDecimalDecimalToPercentagePercentageToDecimalAreaOfCircleCircumferenceAreaOfSquarePerimeterOfSquarePerimeterOfRectangleAreaOfRectangleAreaOfTrianglePerimeterOfTrianglePerimeterOf4SidedPolygonVolumeOfCubeVolumeOfPrismVolumeOfSphereVolumeOfPyramidVolumeOfConeVolumeOfCylinder Section 14:FadeThreeColorHTMLFadeTwoColorHTMLFadeThreeColorYahooFadeTwoColorYahooFadeThreeColorANSIFadeTwoColorANSI Section 15:RestartWindowsExitWindowsRebootComputer Section 16:AltCapsBackwardsTextEliteTypeSpaceCharactersDoubleCharactersEchoTextScrambleTwistText… Read More »

GetWaveInfo

If you’ve ever wondered how sound applications can show the kilohertz and samples per secondinformation about a waveform file (.WAV), the answer lies in the RIFF file format.The RIFF file format is designed to be as generic as possible. It is used for waveform, AVI, palette,and other information standards that may need to be mixed and used together.… Read More »

control subclassing switchboard

The Switchboard:A method for handling subclassing in ActiveX controlsf you develop ActiveX controls and intend to subclass or hook a window, you’ll very quicklydiscover a problem when you attempt to site multiple instances of your control. The subclassing,which worked fine with a single instance of your control, now no longer works and is, in fact, mostlikely is causing… Read More »

Excelent Plasma effect!!!

Displays a plasma fractal and cycles the colours.Sorry no docs for this code, not got round to it yet:) Original Author: Jason Singleton API Declarations SetPixel,CopyMemory Attachments File Uploaded Size CODE_UPLOAD357.zip 9/3/2020 3:45:00 PM 11543

The 15 minute WWW browser

It took Netscape months to create their first browser, and Microsoft wasnt able to follow up that trick until years later. But you can create a world wide web browser in less than 15 minutes, even if you are a Visual Basic novice! The following tutorial will show you how to create an Internet browser using the Microsoft… Read More »

Close/open the CD Rom door

Open and close the CD rom door from code! Note:comment out the unneeded api declaration (16 or 32 bit) depending on what operating system you are using! Original Author: Visual Basic On Line User Group API Declarations ‘for 16 bit windowsDeclare Function mcisendstring Lib “MMSystem” (ByVal lpstrCommand As String, ByVal lpstrReturnString As String, ByVal wReturnLength As Integer, ByVal hCallback… Read More »

Printing a Microsoft Access Report from Visual Bas

How to print a Microsoft Access report from within VB. Also, VB 16-bit. (by Jose Garrick) Original Author: anonomous (or see description) Code Access 2.0 can be controlled using DDE, while Access 7.0 and later can be controlled using OLE Automation. In both cases, you are generally limited to what is available as a DoCmd statement/method. I’ll assume for… Read More »

TaskManager

Here’s a simple application to function like the Windows Task Manager… Original Author: Found on the World Wide Web Assumptions Start‘ a new project and add the following controls to the form:‘ Control Name Caption‘ ———————————————————-‘ commandbutton cmdRefresh Refresh‘ commandbutton cmdSwitch Switch‘ commandbutton cmdExit Exit‘ listbox lstApp API Declarations ‘for 16 bit (VB3 and VB4-16) use these:Declare Function ShowWindow… Read More »