Monthly Archives: January 2021

Easily save and restore CheckedListBox values in the Registry in C#

The example Easily save and restore a form’s settings in the Registry in C# shows one way you can save a form’s settings and the values placed in its controls. That example really just demonstrates the basic ideas and shows … Continue reading

Posted in forms, programs, registry | Comments Off on Easily save and restore CheckedListBox values in the Registry in C#

Use k-means clustering to find clusters of data in C#

I was recently editing John Mueller and Luca Massaron’s book Machine Learning For Dummies, Second Edition. (This link is for the first edition. I’ll try to remember to update it when the new edition is available.) The book is about … Continue reading

Posted in algorithms | Tagged , , , , , , , , | Comments Off on Use k-means clustering to find clusters of data in C#

Automatically set camera distance in WPF and C#

This example extends the post Build a geodesic sphere with WPF and C# to let you automatically set the camera distance to make the scene fill the viewport. Making a 3D scene fill the viewport nicely can be tricky. The … Continue reading

Posted in 3D graphics, algorithms, graphics, mathematics, wpf | Tagged , , , , , , , , , , , , , , , , | 6 Comments

Make numbered buttons in C#

This program lets you create a sequence of images that look like numbered buttons. It’s another program that I seem to recreate periodically. Click the Background and Foreground color swatches to change those colors. Use the numeric up/down controls to … Continue reading

Posted in drawing, graphics, user interface | Tagged , , , , , , , , , | Comments Off on Make numbered buttons in C#