When I did redesign of site into blog format some things got lost. I was quite surprised that those files, not linked from my site, were still getting bunch of hits, especially legacy VB 6.0 code. It seems that there are still some people using it.
By popular demand, here is all that code in single archive. Do note that even most youngest code is from 2004 with most of code being even older. I bring you also original descriptions, nothing is modified in any way.
Download is here.
How to reorder TabPages inside TabControl.
Detecting already running program and letting first instance know that.
VB.NET 1.1 DLLs
This DLL is compiled version of classes given on these pages and some classes without source code. There is Profile class that lets you save Form position, ListView Columns witdh and more. OleDb class lets you to easily perform one line queries. There are few more CRC algorithms including CRC8. There is also many more classes that can prove to be useful. There are not too many samples now but more of them will come.
VB.NET 1.1 Classes
OpenFileDialog class implemented in .NET has small problem. Buffer size is too small to handle more than few hundred files or even less. This replacement was designed to give you direct access to Windows API and to allow custom buffer sizes. It is mostly compatible with .NET OpenFileDialog so no porting problems should occur.
This class gives you ability to perform unsigned Shift left, Shift right, Rotate left and Rotate right bitwise operations over Integer and Short (aka Int16 and Int32) data types. This is very usefull in some algorithms that must be implemented in unsigned logic that is currently unupported by Visual Basic.
This class can be used to perform read and write operations on serial communication ports (COM). It has basic example until I gather some time to make better one.
This class gives you ability to check data integrity with CRC16 algorithm.
This class gives you ability to check data integrity with CRC32 algorithm.
This class enables you to crypt your data using fast RC4 algorithm.
VB.NET includes its own vision of registry access. This vision makes everything possible but its drawback is in number of code lines for most simple things. By using this class you can write/read REG_DWORD and REG_SZ data types in one line.
First ListBox control use in .NET was very confusing for me. Like, I am sure many of you, I used ItemData to fill in ID of somekind. But there is no ItemData in Kansas anymore so “Dorothy” had to find another solution. It took some time to see that new “Items.Add” formula takes Object as argument. From there, everything was downhill. By using Text and ID as an argument, this class can be successfully used to retrieve same information later. One Object argument is added for “just in case” situations.
VB.NET 1.1 Macros
Enables you to use VB6 style versioning in .NET enviroment.
- DateTime 1.10
When I started to learn Java, its date management model drove me crazy. It was too much complicated for simple calculations. Here is class that enables date/time management in simple .NET alike class.
- Road to Java
This script is diary of differences I notice while learning Java. It is not complete nor it will ever be but I will work on it.
VB 6.0 Classes
This class was developed to open files via API which has advantage of being able to trim them by using Length property.
This class gives you ability to check data integrity with standard CRC32 algorithm.
This class enables you to encrypt your passwords with SHA-1 hash (one-way) algorithm.
You can enumerate open windows by using this class.
This class enables you to draw in X-Y coordinate system. Usefull for drawing mathematical functions graphs.
VB 6.0 Controls
Complete substitude for CommonDialog control. No .ocx needed.
This control can be used as container for other controls.
Complete substitude for ProgressBar control. No .ocx needed.
This control gives you AutoComplete ability.
This control gives you option to show icons in Tray notification area.
VB 6.0 Modules
This module enables you to show Browse dialog.
This module gives you ability to check data integrity with standard CRC16 algorithm.
This module gives you ability to check data integrity with standard CRC32 algorithm.
This module enables you to find out when is Easter.
This module enables you to show Croatian MsgBox and InputBox.
This module enables you to crypt your data using fast RC4 algorithm.
This module enables you to access Windows registy.
This module enables you to encrypt your passwords with SHA-1 hash (one-way) algorithm.
This module contains functions for shuffling elements of zero-based arrays (for playlists, cards, etc.).
This module enables you to shut down your computer or put it in sleep mode from your program.
This module enables you to Swap variables in single instruction.