Code Samples

Customised Listbox (33kB)
This Visual Basic 5 code demonstrates how to:
1. Prevent a listbox from displaying scroll bars
2. Scroll a listbox using buttons on a form
This is achieved using a number of calls to the Win32 API.


Playing a WAV File from Memory (33kB)
This Visual Basic 5 sample illustrates how a WAV file can be played from memory using the sndPlaySound API function.

Creating a DLL for VB in VC++ (76kB)
This sample code shows how a C++ DLL can be created and called from Visual Basic 5. You will need Visual Basic 5 and Visual C++ 5 to use this sample.

File Controls Handler DLL (52kB)
This is a DLL that I created a while ago. Its useful but mundane function is to make it easy to use the file controls (file listbox, directory listbox and drive listbox). It also adds a few handy additional features. It comes both as a DLL and as a class module (in case you want to compile it straight into your program) and I also wrote a help file showing how it is used. I can't vouch for the coding style (like I say, I wrote it a while back) but the component does seem to be quite robust.


|   back   |   home   |   graphics   |   articles   |   video   |
|   programs   |   books   |   links   |   about me   |   contact   |