我的是dll了,程序还要还要编译吗?

解决方案 »

  1.   

    this.numberTextBox1.Masked = CustomControls.NumberTextBox.Mask.Decimal;
    这条语句在哪里?
      

  2.   

    using System;
    using System.Drawing;
    using System.Collections;
    using System.ComponentModel;
    using System.Windows.Forms;
    namespace HIS.药品分系统.药典子系统.WinForm
    {
    /// <summary>
    /// 药品录入 的摘要说明。
    /// </summary>
    public class F_新建_药品录入 : System.Windows.Forms.Form
    {
    private CustomControls.NumberTextBox numberTextBox1;
    ...
    private System.ComponentModel.Container components = null;
    public F_新建_药品录入()
    {
    //
    // Windows 窗体设计器支持所必需的
    //
    InitializeComponent(); //
    // TODO: 在 InitializeComponent 调用后添加任何构造函数代码
    //
    } /// <summary>
    /// 清理所有正在使用的资源。
    /// </summary>
    protected override void Dispose( bool disposing )
    {
    if( disposing )
    {
    if(components != null)
    {
    components.Dispose();
    }
    }
    base.Dispose( disposing );
    } #region Windows Form Designer generated code
    /// <summary>
    /// 设计器支持所需的方法 - 不要使用代码编辑器修改
    /// 此方法的内容。
    /// </summary>
    private void InitializeComponent
    {
    ...
    this.numberTextBox1 = new CustomControls.NumberTextBox();
    ...
    this.Pan_药品信息.Controls.AddRange(new System.Windows.Forms.Control[] {
    this.numberTextBox1 = new CustomControls.NumberTextBox();
    ...
    // 
    // numberTextBox1
    // 
    this.numberTextBox1.DecimalPlace = 0;
    this.numberTextBox1.leftCoinchar = null;
    this.numberTextBox1.Location = new System.Drawing.Point(528, 168);
    this.numberTextBox1.Masked = CustomControls.NumberTextBox.Mask.Decimal;
    this.numberTextBox1.Name = "numberTextBox1";
    this.numberTextBox1.rightCoinchar = null;
    this.numberTextBox1.Size = new System.Drawing.Size(112, 21);
    this.numberTextBox1.TabIndex = 122;
    this.numberTextBox1.Text = "0";
    this.numberTextBox1.value = new System.Decimal(new int[] {
     0,
     0,
     0,
     0}); }
    #endregion
    这是主要的(...代表省略了)
      

  3.   

    你把这句提到类的外面去写
    public enum Mask {None,Decimal,Integer }
    枚举也是一种class,写在类里面会当成一种类的嵌套用法
    试试看