I have 4 projects in my solution. In short, they all use datagridviews and I want their formatting to be uniform.

I was using a module with a method to set the formatting but I needed a copy of the module in each of the projects.

If I alter the code in 1 I have to copy it to them all. I created a class library so all projects can reference it and tried to generate the code, but it won't let me reference the Windows.System.Forms namespace for the DataGridView. Fair enough, but is there a better way to achieve what I want without creating a 'Formatting' windows Forms project instead?

Thanks