示例#1
0
        private void cargaControles()
        {
            Font fuente    = new Font("Microsoft Sans Serif", 8, FontStyle.Regular);
            byte TabIndTxt = 0;
            byte TabIndBar = 100;

            flpBarCode.Controls.Clear();
            barCode39 = new DSBarCode.BarCodeCtrl[9];
            txtLegajo = new TextBox[9];
            for (int i = 0; i < 9; i++)
            {
                barCode39[i]               = new DSBarCode.BarCodeCtrl();
                barCode39[i].Width         = 200; //190
                barCode39[i].Height        = 113; //103
                barCode39[i].BarCodeHeight = 70;
                barCode39[i].HeaderText    = "";
                barCode39[i].HeaderFont    = fuente;
                barCode39[i].ShowHeader    = true;
                barCode39[i].BorderStyle   = BorderStyle.FixedSingle;
                barCode39[i].Tag           = i;
                barCode39[i].BarCode       = "0";
                barCode39[i].TabIndex      = TabIndBar;
                barCode39[i].Weight        = DSBarCode.BarCodeCtrl.BarCodeWeight.Small;
                TabIndBar++;

                txtLegajo[i]           = new TextBox();
                txtLegajo[i].Width     = 45;
                txtLegajo[i].Height    = 20;
                txtLegajo[i].MaxLength = 5;
                txtLegajo[i].TabIndex  = TabIndTxt;
                TabIndTxt++;
                this.txtLegajo[i].Tag          = i;
                this.txtLegajo[i].TextChanged += new EventHandler(txtLegajo_TextChanged);

                flpBarCode.Controls.Add(barCode39[i]);
                flpBarCode.Controls.Add(txtLegajo[i]);
            }
        }
示例#2
0
        private void cargaControles()
        {
            Font fuente = new Font("Microsoft Sans Serif", 8, FontStyle.Regular );
            byte TabIndTxt = 0;
            byte TabIndBar = 100;

            flpBarCode.Controls.Clear();
            barCode39 = new DSBarCode.BarCodeCtrl[9];
            txtLegajo = new TextBox[9];
            for (int i = 0; i < 9; i++)
            {
                barCode39[i] = new DSBarCode.BarCodeCtrl();
                barCode39[i].Width  = 200;//190
                barCode39[i].Height = 113;//103
                barCode39[i].BarCodeHeight = 70;
                barCode39[i].HeaderText = "";
                barCode39[i].HeaderFont = fuente;
                barCode39[i].ShowHeader = true;
                barCode39[i].BorderStyle = BorderStyle.FixedSingle;
                barCode39[i].Tag = i;
                barCode39[i].BarCode = "0";
                barCode39[i].TabIndex = TabIndBar;
                barCode39[i].Weight = DSBarCode.BarCodeCtrl.BarCodeWeight.Small;
                TabIndBar++;

                txtLegajo[i] = new TextBox();
                txtLegajo[i].Width = 45;
                txtLegajo[i].Height = 20;
                txtLegajo[i].MaxLength = 5;
                txtLegajo[i].TabIndex=TabIndTxt;
                TabIndTxt++;
                this.txtLegajo[i].Tag = i;
                this.txtLegajo[i].TextChanged += new EventHandler(txtLegajo_TextChanged);

                flpBarCode.Controls.Add(barCode39[i]);
                flpBarCode.Controls.Add(txtLegajo[i]);
            }
        }