Programmatically populating CheckedListBoxes for Directory Printer 26 will Afford Languages in addition to English

It’s better to populate the user interface using a coded definition of the available columns rather than putting them directly into the designer for the form.

I’ve been wiring up the user interface of Karen’s Directory Printer 26. This morning I created enums and classes to support the programmatic population of those CheckedListBox controls under File Info and Folder Info on the Other Settings tab. The enums associate each data type with a number. The classes associate the enums with English. The English can be easily swapped out for other languages.

The next step is populating the File Info and Folder Info CheckedListBoxes on the Print and Save to Disk tabs based on which members are checked ✅as available in the configuration.

The step after that will be actually saving all these configurations to a file, or the registry, no a file, no the registry. I haven’t decided, yet. I like files.

Not flexible: using Visual Studio 2026’s Windows Form designer to type the names of data available about files into the CheckedListBox control’s definition itself.
Broke datum types into an enum to associate them with a number to be saved in configuration files.
Created class to contain list of all types along with a mapping to English which can easily be updated for other languages.
Tiny class to submit to the user interface for each CheckedListBox Item.
Initialization loop setting the CheckedListBoxes on the Other Settings Page
Looks the same, but the data came from inside the house.

Leave a Comment

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.

Scroll to Top