Category Archives: Microsoft

Auto Resize Controls

This will Resize your controls automatically when every time the form is resized. It can also prevent the controls for resizing. You can also use this for custom controls. Put this code on the form_load event: G_P_AdjustFormon Put this code on the form_Resize event G_P_FormResize Finally, place this code in a module: Option Explicit Public Xtwips As Integer,… Read More »

Insertion Sort for VB6

This method uses the insertion sort algorithm to sort a numeric array. This algorithm is one of the simplest available, but there are better algorithms (to be posted on this site shortly) for longer lists. Returns an Array, or vbEmpty if there’s an error e.g., passed array contains elements that can’t be compared to each other, such as… Read More »