Example #1
0
 /// <summary>
 /// 构造函数
 /// </summary>
 public SubIpInputBox(bool isNetmask)
 {
     _isNetmask       = isNetmask;
     box              = new IpInputBox(_isNetmask);
     this.Font        = new System.Drawing.Font(this.Font.Name, 9);
     this.BorderStyle = System.Windows.Forms.BorderStyle.None; //去掉边框
     this.TextAlign   = HorizontalAlignment.Center;            //字体居中
     this.Size        = new System.Drawing.Size(25, 25);
     this.MaxLength   = 3;
 }
        public void FallBackEventFun(IpInputBox box, int flag)
        {
            switch (flag)
            {
            case 1:
                _box1.Focus();
                break;

            case 2:
                _box1.Focus();
                break;

            case 3:
                _box2.Focus();;
                break;

            case 4:
                _box3.Focus();;
                break;
            }
        }