找不到类型或命名空间名称“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

嗯 就是因为命名空间不一致的问题吧!

在flowerMain类里面加上name flower {}

就好了!

flowerMain的前面加上它的命令空间。或者你看下flowerMain的命令空间是不是flower ?最好改为同一个命令空间