Category Archives: Microsoft

Using VB6 to Encrypt and Decrypt Files

The user will still be able to see the encrypted file, but if someone else logs on that machine and attempts to view the file they will see the encrypted file but not its contents. It has been possible to encrypt files using built-in function of Windows since the XP days. This example shows how to use this… Read More »

Calculate Area of Triangle with VB6

This is a quick example of how to implement a basic math formula within your program. The example project only contains one form, with three fields and a button: All three fields need to be populated with values, which is checked for in the code. Also, this example will only let you enter numeric values in the fields,… Read More »

How to Connect to MySQL with VB6

For some folks, connecting to a relational database system (RDBMS) seems like a magical art. It’s not really that difficult, and I’ll show you how to do it in this post. Even though Visual Basic 6 has been out of production for quite a number of years, I find that it is still being used to teach programming… Read More »

Search and Replace Demo

By request, this is a explanation and sample project for utilizing the built-in Replace function for VB6. Finding and replacing text within a string is relatively speaking one of the more common functions you’ll perform when working with text. Fortunately, VB6 has included some functions for easing the burden of working with text. One of these built-in functions… Read More »

File Logging Module

This is a simple module that will allow you to log events from within your program to a text file. This is more of a string handling demo, but could be useful as a starting point for something bigger. If you’re like me, you like to know what is going in your application. This information comes in handy… Read More »

Show Seconds in Taskbar

By adding this DWORD value, you can add the display of seconds to the Windows 10 taskbar clock. You’ll have to restart Explorer in order for the changes to take effect.