我写了一个小程序,想用 FreeTextBox 做编辑器。
可是我却不知道引用他。我把dll文件加入到引用中去了,
然后在我写的程序文件
bookconfig.cs 
中加入using FreeTextBox(大小写正确),编译,报错:找不到类型或命名空间FreeTextBox;
由于在bookconfig.cs中有定义 protected FreeTextBox newContent;
当我删除using FreeTextBox和protected FreeTextBox newContent;就可以正常的编译成DLL
再加入using FreeTextBox,报相同的错误!不知道怎么弄才能弄好。知道的大哥告诉小弟弟一声

解决方案 »

  1.   

    add a reference to  FreeTextBox.dllthen addusing FreeTextBoxControls;
      

  2.   

    添加引用以后using FreeTextBoxControls应该不会错啊
      

  3.   

    http://blog.csdn.net/cityhunter172/我的專欄,有空不妨去看看我應該有講到如何添加應用
      

  4.   

    把FreeTextBox添加到控件箱,再把控件拖进去,自己会生成using的
      

  5.   

    FreeTextBox 1.6.3 中文版使用说明1.直接使用的方法:
      (1) 复制 bin 目录下的 FreeTextBox.dll 文件到你的 Web 应用程序目录中的 bin 目录或其上层的虚拟目录下的 bin 目录,
          并添加引用;
            (2) 复制 HelperScripts 目录下的三个文件到你的 Web 应用程序目录中,
          或其子目录中,这时注意使用时要指定 HelperFilePath 属性 this.FreeTextBox1.HelperFilesPath="HelperScripts";;
          并将此目录及文件添加到工程。  (3) 复制 images 目录下的 ftb 目录--到-->你的 Web 站点根目录下的 images 目录中。页面:
    <%@ Register TagPrefix="ftb" Namespace="FreeTextBoxControls" Assembly="FreeTextBox" %>  <FTB:FreeTextBox id="FreeTextBox1" runat="server" Width="700" />后台.CS代码:
    using FreeTextBoxControls;if(!IsPostBack)
    {
            FreeTextBox1.AutoConfigure = AutoConfigure.EnableAll;
    this.FreeTextBox1.HelperFilesPath="HelperScripts";
    this.FreeTextBox1.ImageGalleryPath="images"; FreeTextBox1.Text = "<P><B><FONT face=arial><FONT size=3><FONT color=green>Free</FONT>TextBox 1.6.3</FONT></B></P><P>"
    +"作者: <a href=\"http://www.freetext.com\" target=\"_blank\">litianping</a><BR>"
    +"译者: ltp&lt;<a href=\"mailto:[email protected]\">[email protected]</a>&gt;</P></FONT>";
    }
      

  6.   

    FreeTextBox 1.6.3 中文版使用说明1.直接使用的方法:
      (1) 复制 bin 目录下的 FreeTextBox.dll 文件到你的 Web 应用程序目录中的 bin 目录或其上层的虚拟目录下的 bin 目录,
          并添加引用;
            (2) 复制 HelperScripts 目录下的三个文件到你的 Web 应用程序目录中,
          或其子目录中,这时注意使用时要指定 HelperFilePath 属性 this.FreeTextBox1.HelperFilesPath="HelperScripts";;
          并将此目录及文件添加到工程。  (3) 复制 images 目录下的 ftb 目录--到-->你的 Web 站点根目录下的 images 目录中。页面:
    <%@ Register TagPrefix="ftb" Namespace="FreeTextBoxControls" Assembly="FreeTextBox" %>  <FTB:FreeTextBox id="FreeTextBox1" runat="server" Width="700" />后台.CS代码:
    using FreeTextBoxControls;if(!IsPostBack)
    {
            FreeTextBox1.AutoConfigure = AutoConfigure.EnableAll;
    this.FreeTextBox1.HelperFilesPath="HelperScripts";
    this.FreeTextBox1.ImageGalleryPath="images"; FreeTextBox1.Text = "<P><B><FONT face=arial><FONT size=3><FONT color=green>Free</FONT>TextBox 1.6.3</FONT></B></P><P>"
    +"作者: <a href=\"http://www.freetext.com\" target=\"_blank\">litianping</a><BR>"
    +"译者: ltp&lt;<a href=\"mailto:[email protected]\">[email protected]</a>&gt;</P></FONT>";
    }