怎么继承有参数的form啊
public partial class FormBase : Form
{
private FormBase()
{
InitializeComponent();
}
private FormBase Main;
public FormBase(FormBase main)
{
InitializeComponent();
Main = main;
}
}
我另一个form怎么去继承啊
------解决方案--------------------public partial class FormChildren : FormBase
{
private FormChildren ()
{
InitializeComponent();
}
public FormChildren (FormBase main):base(main)
{
}
}
------解决方案--------------------直接继承FormBase啊,new的时候,可以选择是否带参数构造
------解决方案--------------------直接继承不就行了??为什么不能继承??
class myclass :FormBase
{
public myclass (FormBase? main):base(main)
{
}
}