Advertisement
4_2005-2006 Custom Controls/ Forms/ Menus #169194

Listbox Replacement Class V1.2

I often find myself in need of a listbox in applications in which I don't use forms. I couldn't find anything on PSC (which would have saved me some time), so I just wrote my own. This is just a simple listbox class, no events, no confusing, never ending functions, just plain, simple VB code (I haven't used any APIs :D). The class is very small (only 2.3 kb). Also, this class can have more than 32767 items, because I've used Longs, and not Integers (like the VB listbox). V1.2 New features (since V1.0): --V1.1: 1) alphabetically sorting (module by Rde) 2) Add items somewhere in the middle of the list 3) Transport the list to a control (build-in textbox/listbox/combobox support) 4) Events --V1.2: 5) Search 6) Import from and export to a file 7) Encryption/decryption* *The encrypting/decrypting doesn't work very well. I'm not really an expert on encrypting/decrypting, so if anyone can (re-)write this for me... :D

AI

AI Summary: This codebase represents a historical implementation of the logic described in the metadata. Our preservation engine analyzes the structure to provide context for modern developers.

Source Code
original-source
Upload
Original Comments (3)
Recovered from Wayback Machine