If you can't find what you need using the site search on the toolbar above, or if you need more detailed help or just need to be pointed in the right direction, post your question to the newly opened kadaitcha.cx forums. Membership is free.

Welcome to the kadaitcha.cx Visual Basic 2008 Resources


The amount of content available at the moment isn't as extensive as it should be, but more is coming. kadaitcha.cx hopes that you find what is here useful. All of the pages here have downloadable projects.

You are free to use the code for any purpose, private or commercial.

Please note that all code examples on this site have been developed for .Net Framework 3.5.

How to Play a .wav Sound or System Sound

The My.Computer.Audio.Play and My.Computer.Audio.PlaySystemSound methods can be used to play .wav sound files and system sounds.
How to Play a .wma, .mp3 or other Music

Visual Basic 2008 can load the Windows Media Player library (WMPLib) and play any supported audio file without needing to load the Windows Media Player interface.
How to Host Windows Media Player to Play Music & Video

Visual Basic 2008 can host Windows Media Player to play any supported audio or video file.
How to Interface to a Video Device and Capture Video and Images

Whilst not painlessly straightforward, interfacing to a webcam and capturing images is relatively easy. Image capture only requires you to load avicap32.dll and send messages into the device's window; the trick is in knowing what messages to send.
How to Compact an Access Database File (.mdb)

With just a few days of regular use, a Microsoft Access database file can grow from a few megabytes to several tens of megabytes. Use this simple code to compact an Access database.
How to Decode and Correctly Display UTF-8 and ISO Encoded Text

If you have ever worked with email or NNTP (news) messages you'll know that From: and Subject: headers don't always contain human-readable information.

Take this:


And turn it into human-readable text, like this:

Заказ впускного коллектора на пежо 307
How to Serialise & Deserialise (Persist & Depersist) Custom Classes

There are innumerable Visual Studio objects that support serialisation; ToolBox, ListView, TreeNode and many others support a .Serialize method, and with a BinaryFormatter or XmlSerializer, you can serialise a single Visual Studio object or a connected network of Visual Studio objects, all the way up to entire sets of database tables and even whole datasets. However the catch is in the words "Visual Studio object"; it isn't obvious how you might go about persisting and depersisting your own custom classes. This article will show you how.