Hello.
I have made a custom class with a property called BlockPos which is an integer.

I can do this same thing with for example Width, but with my own property it doesnt work..
Code:
SomeShit = this.Controls[string.Format(BlockName)].BlockPos;
Error Message:
'System.Windows.Forms.Control' does not contain a definition for 'BlockPos' and no extension method 'BlockPos' accepting a first argument of type 'System.Windows.Forms.Control' could be found (are you missing a using directive or an assembly reference?)

Thanks!