I loaded up a project and ran your code modified and works as expected. Here is the code that I used:
1.
Flange
Class (changed fields to properties)
public class Flange
{
public string Name { get; set; }
public string Description { get; set; }
public double Size { get; set; }
}
2.
FlangeControl
public partial class FlangeControl : UserControl
{
private List<Flange> flanges = new();
public List<Flange> Flanges
{
get => flanges;
set => flanges = value;
}
public FlangeControl() => InitializeComponent();
}
3. Then I dragged and dropped the
FlangeControl
from the Toolbox.
4. Ran code, no errors.
Hope this helps!
PS: I am using a slightly more modern conventions.