The INI file capability is encapsulated into a code region than can be easily copied to any control to make that control capable of being setup through an INI file.
1) In Solution Explorer, expand down AdvancedHMIControls project
2) Expand down the \Controls folder
3) Right click BarMeter.vb and select Open
4) Scroll down to the bottom looking for this:
#Region "IniFileHandling"
5) Select all code between #Region "IniFileHandling" and # End Region , then Ctrl-C to copy
6) In Solution Explorer, right click BasicLabel.vb and select Open
7) Scroll all the way to the bottom and put the cursor to the left of End Class
8 ) Ctrl-V to paste the code
9) Scroll to the top and look for:
Inherits System.Windows.Forms.Label
10) Add this one line of code below that:
Implements System.ComponentModel.ISupportInitialize
11) Window->Close All Documents
You can now Rebuild the Solution and when you open your form, you will have properties for the INI File
You can use the INI files to set any property that uses an atomic value (e.g. integer, string )