VB

 
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.

activecontrol_systemwide
 
 

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

bin_packing
 
 

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.

em_streamin
 
 

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.

hidden_dirlistbox
 
 

Add hidden directories to the standard VB DirListBox

thread_priority
 
 

Setting thread and class priorities in a VB app

 

 

code by Arthur Marks