using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Drawing;
using System.Data;
using System.Text;
using System.Windows.Forms;namespace NV100C
{
    [Guid("84ffd1ee-2e7c-4983-a6bd-1994c65c8d50")]
    public partial class Hello : UserControl
    {
        public Hello()
        {
            InitializeComponent();
        }        private void button1_Click(object sender, EventArgs e)
        {
            String s = "Hello, now is ";
            this.label1.Text = s;
        }
    }
}
第一次尝试编写ocx控件,上面是其中一个页面的代码,编译的时候为什么会提示“System.Guid 不是属性类”的错误呢???
查看微软的文档说明:表示全局唯一标识符 (GUID)。
命名空间:  System
程序集:  mscorlib(在 mscorlib.dll 中)网上搜索了一下,都没人碰到这个问题,请问大家是哪里的问题啊?