我貌似没有分 但是请高手教教
我定义了一个类,但是在窗体中实例化这个类报错说缺少using指令或程序集引用
using System;
using System.Collections.Generic;
using System.Text;
using System.Runtime.InteropServices;
using System.Windows.Forms;
using System.ComponentModel;
using System.Reflection;namespace WindowsApplication1
{
public class MouseKeyHook
窗体实例化:using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using System.Reflection;
using System.Diagnostics;
using System.IO;namespace WindowsFormsApplication1
{
public partial class Form4 : Form
{
private MouseKeyHook mouseKeyHook1 = new MouseKeyHook(true, true);
我定义了一个类,但是在窗体中实例化这个类报错说缺少using指令或程序集引用
using System;
using System.Collections.Generic;
using System.Text;
using System.Runtime.InteropServices;
using System.Windows.Forms;
using System.ComponentModel;
using System.Reflection;namespace WindowsApplication1
{
public class MouseKeyHook
窗体实例化:using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using System.Reflection;
using System.Diagnostics;
using System.IO;namespace WindowsFormsApplication1
{
public partial class Form4 : Form
{
private MouseKeyHook mouseKeyHook1 = new MouseKeyHook(true, true);
添加using指令WindowsApplication1
项目中--引用--添加引用---项目--WindowsApplication1不一个项目
我直接吧项目名改成一样的 错误木有了 还可以?