/// <summary> /// 构造函数 /// </summary> public SubIpInputBox(bool isNetmask) { InitializeComponent(); _isNetmask = isNetmask; box = new IpInputBox(_isNetmask); this.Font = new System.Drawing.Font(this.Font.Name, 11); this.BorderStyle = System.Windows.Forms.BorderStyle.None; //去掉边框 this.TextAlign = HorizontalAlignment.Center; //字体居中 this.Size = new System.Drawing.Size(30, 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; } }