Category Archives: Visual Basic 6 (VB6)

KillFiles

I received a request from someone on help with a problem in deletingtemporary files. It seems that they needed to delete all temporary filesexcept for those with the current date. This subroutine was the result, and Ithough it would be good for those of you struggling with how to use the Dir and GetAttrand SetAttr functions in VB… Read More »

Access Stuff From Other Forms

This just shows how to access CommandButton’s, Label’s etc.. from another Command or label. So when you click Form1’s Command, you can actually be clicking Form2’s command. Very useful for shortcuts. Original Author: SeeD Inputs 1. make 2 forms2. make a command button on each form Returns returns the action of the other command button Code ‘So you have… Read More »

Example with MS Agent, text-to-speech

Microsoft Agent will speak (computerized voice) the contents of a textbox or richtextbox to you! Original Author: Amir Malik Inputs the text to speak, or just paste it Assumptions components/objects:Microsoft Direct Text-to-Speech controlrich text box2 command buttonsthe sp is the DirectSS controltext box for the computer voice speed Returns sound! Code ‘ MSAGENT example by Amir Malik’ website: http://amir142.cjb.net’… Read More »

A Quick and Easy Error Handler

In just a few easy lines you can a have a easy, error proof error handler for you apps! Plus, NO APIs! Original Author: Erik Hagendorn Code ””IN MODULE!””Sub ErrHandlerErrDesc = Err.DescriptionErrNum = Err.NumberBeepMsgBox “Error number ” & ErrNum & ” has occured because: ” &_ErrDesc, vbCritical, “Error”Exit Sub’Edit the msgbox all ya want to make it fit your… Read More »

load file to listbox

2 simple code that save items to a file and the other that load items to the listbox from the file visit my homepage at http://www.cyberway.com.sg/~dyrws 4 more app Original Author: Dua Yong Rew Code *** The Save Function ***  Open App.Path & “” & “playlist.dyr” For Output As 1    For x = 0 To List1.ListCount – 1      List1.ListIndex = x      Print #1,… Read More »

Advanced Encryption DLL (Example)

This DLL, once declared will encrypt any String fed to it based on a number that you give it. Works prefectly, ie. no characters are deformed. Offers very good encryption. Can only be encrypted with the number that it was encrypted with. It can be used to encrypt files so that the modest file tamperers around won’t be… Read More »

Encryption ActiveX DLL (Source Code)

Ever wondered in VB5/6 what the ActiveX DLL does; Ever thought that the MS tutorials were bloated and useless….. Look no further, here is a perfect working example. The complete sorce code to my other submission (Active X encryption DLL (Example)). Original Author: Jack Hoxley Attachments File Uploaded Size CODE_UPLOAD766.zip 9/3/2020 3:45:00 PM 2410

EasyNotePad

This demonstrates many ideas for building a word processor. Shows one way to make context sensitive menus and toolbars. Printing. A simple find/find next routine. Clipboard controls. Form resizing. Shows how to make a status bar. Change fonts(color size type).Any comments greatly appreciated!! Original Author: J C Rock Attachments File Uploaded Size CODE_UPLOAD754.zip 9/3/2020 3:45:00 PM 11739

Multi-Client Server Application

This is full source code for a Multi-Client server, it allows upto 65535 users to connnect to your server, can be customised to become any server, such as IRC, FTP. plus all the functions are in their to relay data and store information on each users accounts. Original Author: Ed Welsby Assumptions An interesting note would be that Icafe… Read More »

Serial Comms with Windows API

When I started with Serial Comms and the API’s I tried to find a piece of code as an example… I couldn’t , so I wrote my own .. and here it is. Any suggestions to better the code will be great. This little program will open a COM port and read from it as well as write… Read More »