看来FileContent是一个Form,如果是的话,将label2的Modifier设为public就可以了

解决方案 »

  1.   

    to 呵呵:又生成时出错信息:
    不可访问"system.windows.forms.control.text",因为它受保护级别限制
      

  2.   

    control?是个什么东东?和label2类似吗?
      

  3.   

    control 应该 不是指具体某个控件
      

  4.   

    using System;
    using System.Drawing;
    using System.Collections;
    using System.ComponentModel;
    using System.Windows.Forms;
    using System.Data;
    using System.IO;是不是少了using什么呢?
      

  5.   

    control应该指的是textbox1,treeview1等当前窗体上的modifier,将这些control的modifier改成public