我在派生名为“PrinterForm
这是父表单的代码”的表单时遇到问题:
public partial class PrinterForm : Form
{
public PrinterForm()
{
InitializeComponent();
}
private void PrinterForm_Load(object sender, EventArgs e)
{
LoadSomething();
}
private void LoadSomething()
{
//Return a List<dynamic> of Dapper (query work fine!). The function is already used elsewhere so no problem here
var list = new DapperRepository().GetAllOfSomething();
}
}
这是子窗体的代码:
public partial class FormChildren : PrinterForm
{
public FormChildren()
{
InitializeComponent();
}
}
当我尝试访问FormChildren
设计器时,会报告错误并且未显示。报告给我的错误如下:
System.Windows.Forms.Design.IEventHandlerService
尝试对LoadSomething
功能进行评论可以正确显示设计器。
有什么问题?