These are some bits of code I've written. While they may not be the most commonly needed lines of code they are included here because I haven't been able to find similar code on other web sites. All are written for VB6.


Get the "ActiveControl" of whichever window is in the foreground even if it belongs to another app.


A one dimensional bin sort class. (bin - as in container, not binary). My first attempt at a bin sorting algorithm. Uses a combination of Best Fit and Worst Fit.


Load large amounts of text or RTFtext into a RichTextBox without freezing the control for seconds. Similar to the responsiveness of Wordpad when loading a large file.


Add hidden directories to the standard VB DirListBox


Setting thread and class priorities in a VB app



code by Arthur Marks