找不到类型或命名空间名称“flowerMain”(是否缺少 using 指令或程序集引用?)
来源:百度知道 编辑:UC知道 时间:2024/06/17 01:30:57
代码如下:
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;
using System.Data.SqlClient;
namespace flower
{
public partial class Form1 : Form
{
public static string M_str_name;
public static string M_str_pwd;
public static string M_str_right;
flower.BaseClass.BaseOperate boperate = new flower.BaseClass.BaseOperate();
flower.BaseClass.OperateAndValidate opAndvalidate = new flower.BaseClass.OperateAndValidate();
public Form1()
{
InitializeComponent();
}
private void form1_Locd(object sender, EventArgs e)
{
opAndvalidate.cboxBind("select UserName from tb_User","tb_User","UserName",comboBo
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;
using System.Data.SqlClient;
namespace flower
{
public partial class Form1 : Form
{
public static string M_str_name;
public static string M_str_pwd;
public static string M_str_right;
flower.BaseClass.BaseOperate boperate = new flower.BaseClass.BaseOperate();
flower.BaseClass.OperateAndValidate opAndvalidate = new flower.BaseClass.OperateAndValidate();
public Form1()
{
InitializeComponent();
}
private void form1_Locd(object sender, EventArgs e)
{
opAndvalidate.cboxBind("select UserName from tb_User","tb_User","UserName",comboBo
嗯 就是因为命名空间不一致的问题吧!
在flowerMain类里面加上name flower {}
就好了!
flowerMain的前面加上它的命令空间。或者你看下flowerMain的命令空间是不是flower ?最好改为同一个命令空间
C#找不到类型或命名空间名称
不存在类型或命名空间名称
找不到类型或命名空间名称“StringBuilder”(是否缺少 using 指令或程序集引用?)
c#错误1:找不到类型或命名空间名称“ArrayList”(是否缺少 using 指令或程序集引用?)
asp.net编译时出现:"找不到类型或命名空间名称“SQLHelper”(是否缺少 using 指令或程序集引用?)"
c#问题,类型或命名空间名称Generic在类或命名空间System.Collections中不存在
找不到类或命名空间
error CS0234: 类型或命名空间名称“db”在类或命名空间“myTxt”中不存在(是否缺少程序集引用?)
写类库时找不到命名空间
找不到命名空间命名空间:System.Windows.Forms