当前上下文中不存在名称frm


当前上下文中不存在名称frm。
public partial class frmProduct : Form
{
SqlConnection cn = new SqlConnection();
SqlCommand cm = new SqlCommand();
DBConnection dbcon = new DBConnection();
SqlDataReader dr;
frmProductList flist;
public frmProduct(frmProductList flist)
{
InitializeComponent();
cn = new SqlConnection(dbcon.MyConnection());
flist = frm; //Error on this line "frm"
}

公共偏类frmProduct:Form{

SqlConnection cn = new SqlConnection();
SqlCommand cm = new SqlCommand();
DBConnection dbcon = new DBConnection();
SqlDataReader dr;
frmProductList flist;
public frmProduct(frmProductList frm)
{
InitializeComponent();
cn = new SqlConnection(dbcon.MyConnection());
flist = frm; 
}

//我自己终于解决了,谢谢的帮助

最新更新