Create an interface and pass it to the form constructor.
interface IFormInterface
{
}
public MyForm(IFormInterface AClass)
{
}
Although I usually do more than just set properties when I want to do something like this, I therefore create an abstract class for the default behavior.
source
share