主窗体调用其他窗体的错误
本人定义了一个副窗体FormOrders,在主窗体内用一个按钮调用它
private void btnOrder_Click(object sender, System.EventArgs e)
{
FormOrders orders=new FormOrders();
orders.CustomerID=cbxID.Text;
orders.ShowDialog();
}
提示错误[C# Error] WinForm6.cs(571): The type or namespace name 'FormOrders' could not be found (are you missing a using directive or an assembly reference?)
[C# Error] WinForm6.cs(571): The type or namespace name 'FormOrders' could not be found (are you missing a using directive or an assembly reference?)
好像是副窗体没又在主创体中定义,请问如何消除错误,谢谢大家