private ImageList ilIcons
Private ilIcons As ImageList
No code example is currently available or this language may not be supported.
In .NET 8.0 and prior, BinaryFormatter was depreciated by Microsoft and would throw an exception during runtime wherever the use of an ImageList loaded with images was discovered.
This is mitigated temporarily with the use of the PropertyGroup/GenerateResourceWarnOnBinaryFormatterUse = true node in the project file. Note that this project setting should be able to be removed in .NET 9.0, where BinaryFormatter has been upgraded to handle most typical WindowsForms uses.