批量取控件的值

 foreach (Control item in this.Controls)
            {
                if (item is TextBox && item.Name.IndexOf("textBox") == 0)
                {
                    int NameNmlk = int.Parse(((TextBox)item).Name.Remove(0, 7));
                    int row =(int)(Math.Ceiling((double)NameNmlk / 9));
                    int line = (int)(NameNmlk % 9);
                    if (line == 0)
                        line = 9;
                        Console.WriteLine("这是第{0}行,第{1}列",row,line);
                    //if (string.IsNullOrEmpty(((TextBox)item).Text))
                         newsudoku[row-1, line-1] = ((TextBox)item).Text;
                }
            }
            foreach (string item in newsudoku)
            {
                Console.WriteLine(item);
            }

完整代码如下

namespace WindowsFormsApplication2
{
    partial class Form1
    {
        /// <summary>
        /// 必需的设计器变量。
        /// </summary>
        private System.ComponentModel.IContainer components = null;

        /// <summary>
        /// 清理所有正在使用的资源。
        /// </summary>
        /// <param name="disposing">如果应释放托管资源,为 true;否则为 false。</param>
        protected override void Dispose(bool disposing)
        {
            if (disposing && (components != null))
            {
                components.Dispose();
            }
            base.Dispose(disposing);
        }

        #region Windows 窗体设计器生成的代码

        /// <summary>
        /// 设计器支持所需的方法 - 不要
        /// 使用代码编辑器修改此方法的内容。
        /// </summary>
        private void InitializeComponent()
        {
            this.textBox10 = new System.Windows.Forms.TextBox();
            this.textBox11 = new System.Windows.Forms.TextBox();
            this.textBox12 = new System.Windows.Forms.TextBox();
            this.textBox13 = new System.Windows.Forms.TextBox();
            this.textBox14 = new System.Windows.Forms.TextBox();
            this.textBox15 = new System.Windows.Forms.TextBox();
            this.textBox16 = new System.Windows.Forms.TextBox();
            this.textBox17 = new System.Windows.Forms.TextBox();
            this.textBox18 = new System.Windows.Forms.TextBox();
            this.textBox19 = new System.Windows.Forms.TextBox();
            this.textBox20 = new System.Windows.Forms.TextBox();
            this.textBox21 = new System.Windows.Forms.TextBox();
            this.textBox22 = new System.Windows.Forms.TextBox();
            this.textBox23 = new System.Windows.Forms.TextBox();
            this.textBox24 = new System.Windows.Forms.TextBox();
            this.textBox25 = new System.Windows.Forms.TextBox();
            this.textBox26 = new System.Windows.Forms.TextBox();
            this.textBox27 = new System.Windows.Forms.TextBox();
            this.textBox28 = new System.Windows.Forms.TextBox();
            this.textBox29 = new System.Windows.Forms.TextBox();
            this.textBox30 = new System.Windows.Forms.TextBox();
            this.textBox31 = new System.Windows.Forms.TextBox();
            this.textBox32 = new System.Windows.Forms.TextBox();
            this.textBox33 = new System.Windows.Forms.TextBox();
            this.textBox34 = new System.Windows.Forms.TextBox();
            this.textBox35 = new System.Windows.Forms.TextBox();
            this.textBox36 = new System.Windows.Forms.TextBox();
            this.textBox1 = new System.Windows.Forms.TextBox();
            this.textBox2 = new System.Windows.Forms.TextBox();
            this.textBox3 = new System.Windows.Forms.TextBox();
            this.textBox4 = new System.Windows.Forms.TextBox();
            this.textBox5 = new System.Windows.Forms.TextBox();
            this.textBox6 = new System.Windows.Forms.TextBox();
            this.textBox7 = new System.Windows.Forms.TextBox();
            this.textBox8 = new System.Windows.Forms.TextBox();
            this.textBox9 = new System.Windows.Forms.TextBox();
            this.textBox37 = new System.Windows.Forms.TextBox();
            this.textBox38 = new System.Windows.Forms.TextBox();
            this.textBox39 = new System.Windows.Forms.TextBox();
            this.textBox40 = new System.Windows.Forms.TextBox();
            this.textBox41 = new System.Windows.Forms.TextBox();
            this.textBox42 = new System.Windows.Forms.TextBox();
            this.textBox43 = new System.Windows.Forms.TextBox();
            this.textBox44 = new System.Windows.Forms.TextBox();
            this.textBox45 = new System.Windows.Forms.TextBox();
            this.textBox46 = new System.Windows.Forms.TextBox();
            this.textBox47 = new System.Windows.Forms.TextBox();
            this.textBox48 = new System.Windows.Forms.TextBox();
            this.textBox49 = new System.Windows.Forms.TextBox();
            this.textBox50 = new System.Windows.Forms.TextBox();
            this.textBox51 = new System.Windows.Forms.TextBox();
            this.textBox52 = new System.Windows.Forms.TextBox();
            this.textBox53 = new System.Windows.Forms.TextBox();
            this.textBox54 = new System.Windows.Forms.TextBox();
            this.textBox55 = new System.Windows.Forms.TextBox();
            this.textBox56 = new System.Windows.Forms.TextBox();
            this.textBox57 = new System.Windows.Forms.TextBox();
            this.textBox58 = new System.Windows.Forms.TextBox();
            this.textBox59 = new System.Windows.Forms.TextBox();
            this.textBox60 = new System.Windows.Forms.TextBox();
            this.textBox61 = new System.Windows.Forms.TextBox();
            this.textBox62 = new System.Windows.Forms.TextBox();
            this.textBox63 = new System.Windows.Forms.TextBox();
            this.textBox64 = new System.Windows.Forms.TextBox();
            this.textBox65 = new System.Windows.Forms.TextBox();
            this.textBox66 = new System.Windows.Forms.TextBox();
            this.textBox67 = new System.Windows.Forms.TextBox();
            this.textBox68 = new System.Windows.Forms.TextBox();
            this.textBox69 = new System.Windows.Forms.TextBox();
            this.textBox70 = new System.Windows.Forms.TextBox();
            this.textBox71 = new System.Windows.Forms.TextBox();
            this.textBox72 = new System.Windows.Forms.TextBox();
            this.textBox73 = new System.Windows.Forms.TextBox();
            this.textBox74 = new System.Windows.Forms.TextBox();
            this.textBox75 = new System.Windows.Forms.TextBox();
            this.textBox76 = new System.Windows.Forms.TextBox();
            this.textBox77 = new System.Windows.Forms.TextBox();
            this.textBox78 = new System.Windows.Forms.TextBox();
            this.textBox79 = new System.Windows.Forms.TextBox();
            this.textBox80 = new System.Windows.Forms.TextBox();
            this.textBox81 = new System.Windows.Forms.TextBox();
            this.button1 = new System.Windows.Forms.Button();
            this.button2 = new System.Windows.Forms.Button();
            this.SuspendLayout();
            //
            // textBox10
            //
            this.textBox10.Location = new System.Drawing.Point(5, 33);
            this.textBox10.MaxLength = 1;
            this.textBox10.Name = "textBox10";
            this.textBox10.Size = new System.Drawing.Size(24, 21);
            this.textBox10.TabIndex = 17;
            //
            // textBox11
            //
            this.textBox11.Location = new System.Drawing.Point(35, 33);
            this.textBox11.MaxLength = 1;
            this.textBox11.Name = "textBox11";
            this.textBox11.Size = new System.Drawing.Size(24, 21);
            this.textBox11.TabIndex = 16;
            //
            // textBox12
            //
            this.textBox12.Location = new System.Drawing.Point(65, 33);
            this.textBox12.MaxLength = 1;
            this.textBox12.Name = "textBox12";
            this.textBox12.Size = new System.Drawing.Size(24, 21);
            this.textBox12.TabIndex = 15;
            //
            // textBox13
            //
            this.textBox13.Location = new System.Drawing.Point(112, 33);
            this.textBox13.MaxLength = 1;
            this.textBox13.Name = "textBox13";
            this.textBox13.Size = new System.Drawing.Size(24, 21);
            this.textBox13.TabIndex = 14;
            //
            // textBox14
            //
            this.textBox14.Location = new System.Drawing.Point(142, 33);
            this.textBox14.MaxLength = 1;
            this.textBox14.Name = "textBox14";
            this.textBox14.Size = new System.Drawing.Size(24, 21);
            this.textBox14.TabIndex = 13;
            //
            // textBox15
            //
            this.textBox15.Location = new System.Drawing.Point(172, 33);
            this.textBox15.MaxLength = 1;
            this.textBox15.Name = "textBox15";
            this.textBox15.Size = new System.Drawing.Size(24, 21);
            this.textBox15.TabIndex = 12;
            //
            // textBox16
            //
            this.textBox16.Location = new System.Drawing.Point(218, 33);
            this.textBox16.MaxLength = 1;
            this.textBox16.Name = "textBox16";
            this.textBox16.Size = new System.Drawing.Size(24, 21);
            this.textBox16.TabIndex = 11;
            //
            // textBox17
            //
            this.textBox17.Location = new System.Drawing.Point(250, 33);
            this.textBox17.MaxLength = 1;
            this.textBox17.Name = "textBox17";
            this.textBox17.Size = new System.Drawing.Size(24, 21);
            this.textBox17.TabIndex = 10;
            //
            // textBox18
            //
            this.textBox18.Location = new System.Drawing.Point(280, 33);
            this.textBox18.MaxLength = 1;
            this.textBox18.Name = "textBox18";
            this.textBox18.Size = new System.Drawing.Size(24, 21);
            this.textBox18.TabIndex = 9;
            //
            // textBox19
            //
            this.textBox19.Location = new System.Drawing.Point(5, 60);
            this.textBox19.MaxLength = 1;
            this.textBox19.Name = "textBox19";
            this.textBox19.Size = new System.Drawing.Size(24, 21);
            this.textBox19.TabIndex = 26;
            //
            // textBox20
            //
            this.textBox20.Location = new System.Drawing.Point(35, 60);
            this.textBox20.MaxLength = 1;
            this.textBox20.Name = "textBox20";
            this.textBox20.Size = new System.Drawing.Size(24, 21);
            this.textBox20.TabIndex = 25;
            //
            // textBox21
            //
            this.textBox21.Location = new System.Drawing.Point(65, 60);
            this.textBox21.MaxLength = 1;
            this.textBox21.Name = "textBox21";
            this.textBox21.Size = new System.Drawing.Size(24, 21);
            this.textBox21.TabIndex = 24;
            //
            // textBox22
            //
            this.textBox22.Location = new System.Drawing.Point(112, 60);
            this.textBox22.MaxLength = 1;
            this.textBox22.Name = "textBox22";
            this.textBox22.Size = new System.Drawing.Size(24, 21);
            this.textBox22.TabIndex = 23;
            //
            // textBox23
            //
            this.textBox23.Location = new System.Drawing.Point(142, 60);
            this.textBox23.MaxLength = 1;
            this.textBox23.Name = "textBox23";
            this.textBox23.Size = new System.Drawing.Size(24, 21);
            this.textBox23.TabIndex = 22;
            //
            // textBox24
            //
            this.textBox24.Location = new System.Drawing.Point(172, 60);
            this.textBox24.MaxLength = 1;
            this.textBox24.Name = "textBox24";
            this.textBox24.Size = new System.Drawing.Size(24, 21);
            this.textBox24.TabIndex = 21;
            //
            // textBox25
            //
            this.textBox25.Location = new System.Drawing.Point(218, 60);
            this.textBox25.MaxLength = 1;
            this.textBox25.Name = "textBox25";
            this.textBox25.Size = new System.Drawing.Size(24, 21);
            this.textBox25.TabIndex = 20;
            //
            // textBox26
            //
            this.textBox26.Location = new System.Drawing.Point(250, 60);
            this.textBox26.MaxLength = 1;
            this.textBox26.Name = "textBox26";
            this.textBox26.Size = new System.Drawing.Size(24, 21);
            this.textBox26.TabIndex = 19;
            //
            // textBox27
            //
            this.textBox27.Location = new System.Drawing.Point(280, 60);
            this.textBox27.MaxLength = 1;
            this.textBox27.Name = "textBox27";
            this.textBox27.Size = new System.Drawing.Size(24, 21);
            this.textBox27.TabIndex = 18;
            //
            // textBox28
            //
            this.textBox28.Location = new System.Drawing.Point(5, 114);
            this.textBox28.MaxLength = 1;
            this.textBox28.Name = "textBox28";
            this.textBox28.Size = new System.Drawing.Size(24, 21);
            this.textBox28.TabIndex = 35;
            //
            // textBox29
            //
            this.textBox29.Location = new System.Drawing.Point(35, 114);
            this.textBox29.MaxLength = 1;
            this.textBox29.Name = "textBox29";
            this.textBox29.Size = new System.Drawing.Size(24, 21);
            this.textBox29.TabIndex = 34;
            //
            // textBox30
            //
            this.textBox30.Location = new System.Drawing.Point(65, 114);
            this.textBox30.MaxLength = 1;
            this.textBox30.Name = "textBox30";
            this.textBox30.Size = new System.Drawing.Size(24, 21);
            this.textBox30.TabIndex = 33;
            //
            // textBox31
            //
            this.textBox31.Location = new System.Drawing.Point(112, 114);
            this.textBox31.MaxLength = 1;
            this.textBox31.Name = "textBox31";
            this.textBox31.Size = new System.Drawing.Size(24, 21);
            this.textBox31.TabIndex = 32;
            //
            // textBox32
            //
            this.textBox32.Location = new System.Drawing.Point(142, 114);
            this.textBox32.MaxLength = 1;
            this.textBox32.Name = "textBox32";
            this.textBox32.Size = new System.Drawing.Size(24, 21);
            this.textBox32.TabIndex = 31;
            //
            // textBox33
            //
            this.textBox33.Location = new System.Drawing.Point(172, 114);
            this.textBox33.MaxLength = 1;
            this.textBox33.Name = "textBox33";
            this.textBox33.Size = new System.Drawing.Size(24, 21);
            this.textBox33.TabIndex = 30;
            //
            // textBox34
            //
            this.textBox34.Location = new System.Drawing.Point(218, 114);
            this.textBox34.MaxLength = 1;
            this.textBox34.Name = "textBox34";
            this.textBox34.Size = new System.Drawing.Size(24, 21);
            this.textBox34.TabIndex = 29;
            //
            // textBox35
            //
            this.textBox35.Location = new System.Drawing.Point(250, 114);
            this.textBox35.MaxLength = 1;
            this.textBox35.Name = "textBox35";
            this.textBox35.Size = new System.Drawing.Size(24, 21);
            this.textBox35.TabIndex = 28;
            //
            // textBox36
            //
            this.textBox36.Location = new System.Drawing.Point(280, 114);
            this.textBox36.MaxLength = 1;
            this.textBox36.Name = "textBox36";
            this.textBox36.Size = new System.Drawing.Size(24, 21);
            this.textBox36.TabIndex = 27;
            //
            // textBox1
            //
            this.textBox1.Location = new System.Drawing.Point(4, 6);
            this.textBox1.MaxLength = 1;
            this.textBox1.Name = "textBox1";
            this.textBox1.Size = new System.Drawing.Size(24, 21);
            this.textBox1.TabIndex = 44;
            //
            // textBox2
            //
            this.textBox2.Location = new System.Drawing.Point(35, 6);
            this.textBox2.MaxLength = 1;
            this.textBox2.Name = "textBox2";
            this.textBox2.Size = new System.Drawing.Size(24, 21);
            this.textBox2.TabIndex = 43;
            //
            // textBox3
            //
            this.textBox3.Location = new System.Drawing.Point(65, 6);
            this.textBox3.MaxLength = 1;
            this.textBox3.Name = "textBox3";
            this.textBox3.Size = new System.Drawing.Size(24, 21);
            this.textBox3.TabIndex = 42;
            //
            // textBox4
            //
            this.textBox4.Location = new System.Drawing.Point(112, 6);
            this.textBox4.MaxLength = 1;
            this.textBox4.Name = "textBox4";
            this.textBox4.Size = new System.Drawing.Size(24, 21);
            this.textBox4.TabIndex = 41;
            //
            // textBox5
            //
            this.textBox5.Location = new System.Drawing.Point(142, 6);
            this.textBox5.MaxLength = 1;
            this.textBox5.Name = "textBox5";
            this.textBox5.Size = new System.Drawing.Size(24, 21);
            this.textBox5.TabIndex = 40;
            //
            // textBox6
            //
            this.textBox6.Location = new System.Drawing.Point(172, 6);
            this.textBox6.MaxLength = 1;
            this.textBox6.Name = "textBox6";
            this.textBox6.Size = new System.Drawing.Size(24, 21);
            this.textBox6.TabIndex = 39;
            //
            // textBox7
            //
            this.textBox7.Location = new System.Drawing.Point(218, 6);
            this.textBox7.MaxLength = 1;
            this.textBox7.Name = "textBox7";
            this.textBox7.Size = new System.Drawing.Size(24, 21);
            this.textBox7.TabIndex = 38;
            //
            // textBox8
            //
            this.textBox8.Location = new System.Drawing.Point(250, 6);
            this.textBox8.MaxLength = 1;
            this.textBox8.Name = "textBox8";
            this.textBox8.Size = new System.Drawing.Size(24, 21);
            this.textBox8.TabIndex = 37;
            //
            // textBox9
            //
            this.textBox9.Location = new System.Drawing.Point(280, 6);
            this.textBox9.MaxLength = 1;
            this.textBox9.Name = "textBox9";
            this.textBox9.Size = new System.Drawing.Size(24, 21);
            this.textBox9.TabIndex = 36;
            //
            // textBox37
            //
            this.textBox37.Location = new System.Drawing.Point(5, 141);
            this.textBox37.MaxLength = 1;
            this.textBox37.Name = "textBox37";
            this.textBox37.Size = new System.Drawing.Size(24, 21);
            this.textBox37.TabIndex = 53;
            //
            // textBox38
            //
            this.textBox38.Location = new System.Drawing.Point(35, 141);
            this.textBox38.MaxLength = 1;
            this.textBox38.Name = "textBox38";
            this.textBox38.Size = new System.Drawing.Size(24, 21);
            this.textBox38.TabIndex = 52;
            //
            // textBox39
            //
            this.textBox39.Location = new System.Drawing.Point(65, 141);
            this.textBox39.MaxLength = 1;
            this.textBox39.Name = "textBox39";
            this.textBox39.Size = new System.Drawing.Size(24, 21);
            this.textBox39.TabIndex = 51;
            //
            // textBox40
            //
            this.textBox40.Location = new System.Drawing.Point(112, 141);
            this.textBox40.MaxLength = 1;
            this.textBox40.Name = "textBox40";
            this.textBox40.Size = new System.Drawing.Size(24, 21);
            this.textBox40.TabIndex = 50;
            //
            // textBox41
            //
            this.textBox41.Location = new System.Drawing.Point(142, 141);
            this.textBox41.MaxLength = 1;
            this.textBox41.Name = "textBox41";
            this.textBox41.Size = new System.Drawing.Size(24, 21);
            this.textBox41.TabIndex = 49;
            //
            // textBox42
            //
            this.textBox42.Location = new System.Drawing.Point(172, 141);
            this.textBox42.MaxLength = 1;
            this.textBox42.Name = "textBox42";
            this.textBox42.Size = new System.Drawing.Size(24, 21);
            this.textBox42.TabIndex = 48;
            //
            // textBox43
            //
            this.textBox43.Location = new System.Drawing.Point(218, 141);
            this.textBox43.MaxLength = 1;
            this.textBox43.Name = "textBox43";
            this.textBox43.Size = new System.Drawing.Size(24, 21);
            this.textBox43.TabIndex = 47;
            //
            // textBox44
            //
            this.textBox44.Location = new System.Drawing.Point(250, 141);
            this.textBox44.MaxLength = 1;
            this.textBox44.Name = "textBox44";
            this.textBox44.Size = new System.Drawing.Size(24, 21);
            this.textBox44.TabIndex = 46;
            //
            // textBox45
            //
            this.textBox45.Location = new System.Drawing.Point(280, 141);
            this.textBox45.MaxLength = 1;
            this.textBox45.Name = "textBox45";
            this.textBox45.Size = new System.Drawing.Size(24, 21);
            this.textBox45.TabIndex = 45;
            //
            // textBox46
            //
            this.textBox46.Location = new System.Drawing.Point(5, 168);
            this.textBox46.MaxLength = 1;
            this.textBox46.Name = "textBox46";
            this.textBox46.Size = new System.Drawing.Size(24, 21);
            this.textBox46.TabIndex = 62;
            //
            // textBox47
            //
            this.textBox47.Location = new System.Drawing.Point(35, 168);
            this.textBox47.MaxLength = 1;
            this.textBox47.Name = "textBox47";
            this.textBox47.Size = new System.Drawing.Size(24, 21);
            this.textBox47.TabIndex = 61;
            //
            // textBox48
            //
            this.textBox48.Location = new System.Drawing.Point(65, 168);
            this.textBox48.MaxLength = 1;
            this.textBox48.Name = "textBox48";
            this.textBox48.Size = new System.Drawing.Size(24, 21);
            this.textBox48.TabIndex = 60;
            //
            // textBox49
            //
            this.textBox49.Location = new System.Drawing.Point(112, 168);
            this.textBox49.MaxLength = 1;
            this.textBox49.Name = "textBox49";
            this.textBox49.Size = new System.Drawing.Size(24, 21);
            this.textBox49.TabIndex = 59;
            //
            // textBox50
            //
            this.textBox50.Location = new System.Drawing.Point(142, 168);
            this.textBox50.MaxLength = 1;
            this.textBox50.Name = "textBox50";
            this.textBox50.Size = new System.Drawing.Size(24, 21);
            this.textBox50.TabIndex = 58;
            //
            // textBox51
            //
            this.textBox51.Location = new System.Drawing.Point(172, 168);
            this.textBox51.MaxLength = 1;
            this.textBox51.Name = "textBox51";
            this.textBox51.Size = new System.Drawing.Size(24, 21);
            this.textBox51.TabIndex = 57;
            //
            // textBox52
            //
            this.textBox52.Location = new System.Drawing.Point(218, 168);
            this.textBox52.MaxLength = 1;
            this.textBox52.Name = "textBox52";
            this.textBox52.Size = new System.Drawing.Size(24, 21);
            this.textBox52.TabIndex = 56;
            //
            // textBox53
            //
            this.textBox53.Location = new System.Drawing.Point(250, 168);
            this.textBox53.MaxLength = 1;
            this.textBox53.Name = "textBox53";
            this.textBox53.Size = new System.Drawing.Size(24, 21);
            this.textBox53.TabIndex = 55;
            //
            // textBox54
            //
            this.textBox54.Location = new System.Drawing.Point(280, 168);
            this.textBox54.MaxLength = 1;
            this.textBox54.Name = "textBox54";
            this.textBox54.Size = new System.Drawing.Size(24, 21);
            this.textBox54.TabIndex = 54;
            //
            // textBox55
            //
            this.textBox55.Location = new System.Drawing.Point(5, 212);
            this.textBox55.MaxLength = 1;
            this.textBox55.Name = "textBox55";
            this.textBox55.Size = new System.Drawing.Size(24, 21);
            this.textBox55.TabIndex = 71;
            //
            // textBox56
            //
            this.textBox56.Location = new System.Drawing.Point(35, 212);
            this.textBox56.MaxLength = 1;
            this.textBox56.Name = "textBox56";
            this.textBox56.Size = new System.Drawing.Size(24, 21);
            this.textBox56.TabIndex = 70;
            //
            // textBox57
            //
            this.textBox57.Location = new System.Drawing.Point(65, 212);
            this.textBox57.MaxLength = 1;
            this.textBox57.Name = "textBox57";
            this.textBox57.Size = new System.Drawing.Size(24, 21);
            this.textBox57.TabIndex = 69;
            //
            // textBox58
            //
            this.textBox58.Location = new System.Drawing.Point(112, 212);
            this.textBox58.MaxLength = 1;
            this.textBox58.Name = "textBox58";
            this.textBox58.Size = new System.Drawing.Size(24, 21);
            this.textBox58.TabIndex = 68;
            //
            // textBox59
            //
            this.textBox59.Location = new System.Drawing.Point(142, 212);
            this.textBox59.MaxLength = 1;
            this.textBox59.Name = "textBox59";
            this.textBox59.Size = new System.Drawing.Size(24, 21);
            this.textBox59.TabIndex = 67;
            //
            // textBox60
            //
            this.textBox60.Location = new System.Drawing.Point(172, 212);
            this.textBox60.MaxLength = 1;
            this.textBox60.Name = "textBox60";
            this.textBox60.Size = new System.Drawing.Size(24, 21);
            this.textBox60.TabIndex = 66;
            //
            // textBox61
            //
            this.textBox61.Location = new System.Drawing.Point(218, 212);
            this.textBox61.MaxLength = 1;
            this.textBox61.Name = "textBox61";
            this.textBox61.Size = new System.Drawing.Size(24, 21);
            this.textBox61.TabIndex = 65;
            //
            // textBox62
            //
            this.textBox62.Location = new System.Drawing.Point(250, 212);
            this.textBox62.MaxLength = 1;
            this.textBox62.Name = "textBox62";
            this.textBox62.Size = new System.Drawing.Size(24, 21);
            this.textBox62.TabIndex = 64;
            //
            // textBox63
            //
            this.textBox63.Location = new System.Drawing.Point(280, 212);
            this.textBox63.MaxLength = 1;
            this.textBox63.Name = "textBox63";
            this.textBox63.Size = new System.Drawing.Size(24, 21);
            this.textBox63.TabIndex = 63;
            //
            // textBox64
            //
            this.textBox64.Location = new System.Drawing.Point(5, 239);
            this.textBox64.MaxLength = 1;
            this.textBox64.Name = "textBox64";
            this.textBox64.Size = new System.Drawing.Size(24, 21);
            this.textBox64.TabIndex = 80;
            //
            // textBox65
            //
            this.textBox65.Location = new System.Drawing.Point(35, 239);
            this.textBox65.MaxLength = 1;
            this.textBox65.Name = "textBox65";
            this.textBox65.Size = new System.Drawing.Size(24, 21);
            this.textBox65.TabIndex = 79;
            //
            // textBox66
            //
            this.textBox66.Location = new System.Drawing.Point(65, 239);
            this.textBox66.MaxLength = 1;
            this.textBox66.Name = "textBox66";
            this.textBox66.Size = new System.Drawing.Size(24, 21);
            this.textBox66.TabIndex = 78;
            //
            // textBox67
            //
            this.textBox67.Location = new System.Drawing.Point(112, 239);
            this.textBox67.MaxLength = 1;
            this.textBox67.Name = "textBox67";
            this.textBox67.Size = new System.Drawing.Size(24, 21);
            this.textBox67.TabIndex = 77;
            //
            // textBox68
            //
            this.textBox68.Location = new System.Drawing.Point(142, 239);
            this.textBox68.MaxLength = 1;
            this.textBox68.Name = "textBox68";
            this.textBox68.Size = new System.Drawing.Size(24, 21);
            this.textBox68.TabIndex = 76;
            //
            // textBox69
            //
            this.textBox69.Location = new System.Drawing.Point(172, 239);
            this.textBox69.MaxLength = 1;
            this.textBox69.Name = "textBox69";
            this.textBox69.Size = new System.Drawing.Size(24, 21);
            this.textBox69.TabIndex = 75;
            //
            // textBox70
            //
            this.textBox70.Location = new System.Drawing.Point(218, 239);
            this.textBox70.MaxLength = 1;
            this.textBox70.Name = "textBox70";
            this.textBox70.Size = new System.Drawing.Size(24, 21);
            this.textBox70.TabIndex = 74;
            //
            // textBox71
            //
            this.textBox71.Location = new System.Drawing.Point(250, 239);
            this.textBox71.MaxLength = 1;
            this.textBox71.Name = "textBox71";
            this.textBox71.Size = new System.Drawing.Size(24, 21);
            this.textBox71.TabIndex = 73;
            //
            // textBox72
            //
            this.textBox72.Location = new System.Drawing.Point(280, 239);
            this.textBox72.MaxLength = 1;
            this.textBox72.Name = "textBox72";
            this.textBox72.Size = new System.Drawing.Size(24, 21);
            this.textBox72.TabIndex = 72;
            //
            // textBox73
            //
            this.textBox73.Location = new System.Drawing.Point(5, 266);
            this.textBox73.MaxLength = 1;
            this.textBox73.Name = "textBox73";
            this.textBox73.Size = new System.Drawing.Size(24, 21);
            this.textBox73.TabIndex = 89;
            //
            // textBox74
            //
            this.textBox74.Location = new System.Drawing.Point(35, 266);
            this.textBox74.MaxLength = 1;
            this.textBox74.Name = "textBox74";
            this.textBox74.Size = new System.Drawing.Size(24, 21);
            this.textBox74.TabIndex = 88;
            //
            // textBox75
            //
            this.textBox75.Location = new System.Drawing.Point(65, 266);
            this.textBox75.MaxLength = 1;
            this.textBox75.Name = "textBox75";
            this.textBox75.Size = new System.Drawing.Size(24, 21);
            this.textBox75.TabIndex = 87;
            //
            // textBox76
            //
            this.textBox76.Location = new System.Drawing.Point(112, 266);
            this.textBox76.MaxLength = 1;
            this.textBox76.Name = "textBox76";
            this.textBox76.Size = new System.Drawing.Size(24, 21);
            this.textBox76.TabIndex = 86;
            //
            // textBox77
            //
            this.textBox77.Location = new System.Drawing.Point(142, 266);
            this.textBox77.MaxLength = 1;
            this.textBox77.Name = "textBox77";
            this.textBox77.Size = new System.Drawing.Size(24, 21);
            this.textBox77.TabIndex = 85;
            //
            // textBox78
            //
            this.textBox78.Location = new System.Drawing.Point(172, 266);
            this.textBox78.MaxLength = 1;
            this.textBox78.Name = "textBox78";
            this.textBox78.Size = new System.Drawing.Size(24, 21);
            this.textBox78.TabIndex = 84;
            //
            // textBox79
            //
            this.textBox79.Location = new System.Drawing.Point(218, 266);
            this.textBox79.MaxLength = 1;
            this.textBox79.Name = "textBox79";
            this.textBox79.Size = new System.Drawing.Size(24, 21);
            this.textBox79.TabIndex = 83;
            //
            // textBox80
            //
            this.textBox80.Location = new System.Drawing.Point(250, 266);
            this.textBox80.MaxLength = 1;
            this.textBox80.Name = "textBox80";
            this.textBox80.Size = new System.Drawing.Size(24, 21);
            this.textBox80.TabIndex = 82;
            //
            // textBox81
            //
            this.textBox81.Location = new System.Drawing.Point(280, 266);
            this.textBox81.MaxLength = 1;
            this.textBox81.Name = "textBox81";
            this.textBox81.Size = new System.Drawing.Size(24, 21);
            this.textBox81.TabIndex = 81;
            //
            // button1
            //
            this.button1.Location = new System.Drawing.Point(310, 6);
            this.button1.Name = "button1";
            this.button1.Size = new System.Drawing.Size(75, 23);
            this.button1.TabIndex = 90;
            this.button1.Text = "button1";
            this.button1.UseVisualStyleBackColor = true;
            this.button1.Click += new System.EventHandler(this.button1_Click);
            //
            // button2
            //
            this.button2.Location = new System.Drawing.Point(310, 35);
            this.button2.Name = "button2";
            this.button2.Size = new System.Drawing.Size(75, 23);
            this.button2.TabIndex = 92;
            this.button2.Text = "button2";
            this.button2.UseVisualStyleBackColor = true;
            this.button2.Click += new System.EventHandler(this.button2_Click);
            //
            // Form1
            //
            this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 12F);
            this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
            this.ClientSize = new System.Drawing.Size(512, 493);
            this.Controls.Add(this.button2);
            this.Controls.Add(this.button1);
            this.Controls.Add(this.textBox73);
            this.Controls.Add(this.textBox74);
            this.Controls.Add(this.textBox75);
            this.Controls.Add(this.textBox76);
            this.Controls.Add(this.textBox77);
            this.Controls.Add(this.textBox78);
            this.Controls.Add(this.textBox79);
            this.Controls.Add(this.textBox80);
            this.Controls.Add(this.textBox81);
            this.Controls.Add(this.textBox64);
            this.Controls.Add(this.textBox65);
            this.Controls.Add(this.textBox66);
            this.Controls.Add(this.textBox67);
            this.Controls.Add(this.textBox68);
            this.Controls.Add(this.textBox69);
            this.Controls.Add(this.textBox70);
            this.Controls.Add(this.textBox71);
            this.Controls.Add(this.textBox72);
            this.Controls.Add(this.textBox55);
            this.Controls.Add(this.textBox56);
            this.Controls.Add(this.textBox57);
            this.Controls.Add(this.textBox58);
            this.Controls.Add(this.textBox59);
            this.Controls.Add(this.textBox60);
            this.Controls.Add(this.textBox61);
            this.Controls.Add(this.textBox62);
            this.Controls.Add(this.textBox63);
            this.Controls.Add(this.textBox46);
            this.Controls.Add(this.textBox47);
            this.Controls.Add(this.textBox48);
            this.Controls.Add(this.textBox49);
            this.Controls.Add(this.textBox50);
            this.Controls.Add(this.textBox51);
            this.Controls.Add(this.textBox52);
            this.Controls.Add(this.textBox53);
            this.Controls.Add(this.textBox54);
            this.Controls.Add(this.textBox37);
            this.Controls.Add(this.textBox38);
            this.Controls.Add(this.textBox39);
            this.Controls.Add(this.textBox40);
            this.Controls.Add(this.textBox41);
            this.Controls.Add(this.textBox42);
            this.Controls.Add(this.textBox43);
            this.Controls.Add(this.textBox44);
            this.Controls.Add(this.textBox45);
            this.Controls.Add(this.textBox1);
            this.Controls.Add(this.textBox2);
            this.Controls.Add(this.textBox3);
            this.Controls.Add(this.textBox4);
            this.Controls.Add(this.textBox5);
            this.Controls.Add(this.textBox6);
            this.Controls.Add(this.textBox7);
            this.Controls.Add(this.textBox8);
            this.Controls.Add(this.textBox9);
            this.Controls.Add(this.textBox28);
            this.Controls.Add(this.textBox29);
            this.Controls.Add(this.textBox30);
            this.Controls.Add(this.textBox31);
            this.Controls.Add(this.textBox32);
            this.Controls.Add(this.textBox33);
            this.Controls.Add(this.textBox34);
            this.Controls.Add(this.textBox35);
            this.Controls.Add(this.textBox36);
            this.Controls.Add(this.textBox19);
            this.Controls.Add(this.textBox20);
            this.Controls.Add(this.textBox21);
            this.Controls.Add(this.textBox22);
            this.Controls.Add(this.textBox23);
            this.Controls.Add(this.textBox24);
            this.Controls.Add(this.textBox25);
            this.Controls.Add(this.textBox26);
            this.Controls.Add(this.textBox27);
            this.Controls.Add(this.textBox10);
            this.Controls.Add(this.textBox11);
            this.Controls.Add(this.textBox12);
            this.Controls.Add(this.textBox13);
            this.Controls.Add(this.textBox14);
            this.Controls.Add(this.textBox15);
            this.Controls.Add(this.textBox16);
            this.Controls.Add(this.textBox17);
            this.Controls.Add(this.textBox18);
            this.Name = "Form1";
            this.Text = "Form1";
            this.Load += new System.EventHandler(this.Form1_Load);
            this.ResumeLayout(false);
            this.PerformLayout();

        }

        #endregion

        private System.Windows.Forms.TextBox textBox10;
        private System.Windows.Forms.TextBox textBox11;
        private System.Windows.Forms.TextBox textBox12;
        private System.Windows.Forms.TextBox textBox13;
        private System.Windows.Forms.TextBox textBox14;
        private System.Windows.Forms.TextBox textBox15;
        private System.Windows.Forms.TextBox textBox16;
        private System.Windows.Forms.TextBox textBox17;
        private System.Windows.Forms.TextBox textBox18;
        private System.Windows.Forms.TextBox textBox19;
        private System.Windows.Forms.TextBox textBox20;
        private System.Windows.Forms.TextBox textBox21;
        private System.Windows.Forms.TextBox textBox22;
        private System.Windows.Forms.TextBox textBox23;
        private System.Windows.Forms.TextBox textBox24;
        private System.Windows.Forms.TextBox textBox25;
        private System.Windows.Forms.TextBox textBox26;
        private System.Windows.Forms.TextBox textBox27;
        private System.Windows.Forms.TextBox textBox28;
        private System.Windows.Forms.TextBox textBox29;
        private System.Windows.Forms.TextBox textBox30;
        private System.Windows.Forms.TextBox textBox31;
        private System.Windows.Forms.TextBox textBox32;
        private System.Windows.Forms.TextBox textBox33;
        private System.Windows.Forms.TextBox textBox34;
        private System.Windows.Forms.TextBox textBox35;
        private System.Windows.Forms.TextBox textBox36;
        private System.Windows.Forms.TextBox textBox1;
        private System.Windows.Forms.TextBox textBox2;
        private System.Windows.Forms.TextBox textBox3;
        private System.Windows.Forms.TextBox textBox4;
        private System.Windows.Forms.TextBox textBox5;
        private System.Windows.Forms.TextBox textBox6;
        private System.Windows.Forms.TextBox textBox7;
        private System.Windows.Forms.TextBox textBox8;
        private System.Windows.Forms.TextBox textBox9;
        private System.Windows.Forms.TextBox textBox37;
        private System.Windows.Forms.TextBox textBox38;
        private System.Windows.Forms.TextBox textBox39;
        private System.Windows.Forms.TextBox textBox40;
        private System.Windows.Forms.TextBox textBox41;
        private System.Windows.Forms.TextBox textBox42;
        private System.Windows.Forms.TextBox textBox43;
        private System.Windows.Forms.TextBox textBox44;
        private System.Windows.Forms.TextBox textBox45;
        private System.Windows.Forms.TextBox textBox46;
        private System.Windows.Forms.TextBox textBox47;
        private System.Windows.Forms.TextBox textBox48;
        private System.Windows.Forms.TextBox textBox49;
        private System.Windows.Forms.TextBox textBox50;
        private System.Windows.Forms.TextBox textBox51;
        private System.Windows.Forms.TextBox textBox52;
        private System.Windows.Forms.TextBox textBox53;
        private System.Windows.Forms.TextBox textBox54;
        private System.Windows.Forms.TextBox textBox55;
        private System.Windows.Forms.TextBox textBox56;
        private System.Windows.Forms.TextBox textBox57;
        private System.Windows.Forms.TextBox textBox58;
        private System.Windows.Forms.TextBox textBox59;
        private System.Windows.Forms.TextBox textBox60;
        private System.Windows.Forms.TextBox textBox61;
        private System.Windows.Forms.TextBox textBox62;
        private System.Windows.Forms.TextBox textBox63;
        private System.Windows.Forms.TextBox textBox64;
        private System.Windows.Forms.TextBox textBox65;
        private System.Windows.Forms.TextBox textBox66;
        private System.Windows.Forms.TextBox textBox67;
        private System.Windows.Forms.TextBox textBox68;
        private System.Windows.Forms.TextBox textBox69;
        private System.Windows.Forms.TextBox textBox70;
        private System.Windows.Forms.TextBox textBox71;
        private System.Windows.Forms.TextBox textBox72;
        private System.Windows.Forms.TextBox textBox73;
        private System.Windows.Forms.TextBox textBox74;
        private System.Windows.Forms.TextBox textBox75;
        private System.Windows.Forms.TextBox textBox76;
        private System.Windows.Forms.TextBox textBox77;
        private System.Windows.Forms.TextBox textBox78;
        private System.Windows.Forms.TextBox textBox79;
        private System.Windows.Forms.TextBox textBox80;
        private System.Windows.Forms.TextBox textBox81;
        private System.Windows.Forms.Button button1;
        private System.Windows.Forms.Button button2;
    }
}

时间: 2024-10-03 02:29:50

批量取控件的值的相关文章

FineUI利用JS取控件的值

用ExtJS的获取方式应该就可以了把...我是直接用Ext.getCmp("txt_cusname").getValue;不过txt_cusname这个控件如果是runat="server" 要写成<%=txt_cusname.ClientID %>即为Ext.getCmp("<%=txt_cusname.ClientID %>").getValue;

Jquary获取页面控件的值

一 Jquery获得服务器控件值的方法由于ASP.NET网页运行后,服务器控件会随机生成客户端id,jquery获取时候不太好操作,google了下,总结有以下3种方法: 服务器控件代码:<asp:TextBox ID="txtUserID" runat="server"></asp:TextBox> 1. $("#<%=txtUserID.ClientID%>").val(); 2. $("inpu

【springmvc+mybatis项目实战】杰信商贸-32.出口报运修改+报运货物批量展现-批量修改控件1

上一次我们完成了出口报运业务-购销合同查询与上报,但是其中有很多东西没有完善,我们接下来逐步完成我们的出口报运剩下的业务. 我们要解决其中一个问题:我们在购销合同查询界面点击"上报"之后就会直接上报至出口报运,如果用户仅仅是误点或者测试,这个有点过于草率,我们需要加一些限制来保证操作的正确性. 还有一点就是我们的主信息不全 毛重.净重.长宽高等信息我们都没有填写,我们都应该添加.我们只能在修改中去添加它. 所以我们增加修改的方法: 回顾一下我们之前的出口报运的Mapper映射文件中已经

Ubuntu下Codeblocks+wxWidgets编程,学生公寓管理系统,基于窗体(使用wxFormbuilder拉取控件)。C++,sqlite3

/*************************************************************** * Name:      StuManaMain.cpp * Purpose:   Code for Application Frame * Author:    Zhangaihua (62*********@qq.com) * Created:   2014-05-20 * Copyright: Zhangaihua () * License: *********

javascript获取asp.net服务器端控件的值

代码如下: <%@ Page Language="C#" CodeFile="A.aspx.cs" Inherits="OrderManage_A" %> <%@ Register Src="../UserControl/CtrlCalendar.ascx" TagName="CtrlCalendar" TagPrefix="uc1" %> <html>

实时监测input控件value值动态变化的事件

目录 [1]input [2]propertychange [3]兼容处理 前面的话 HTML5为input控件新增了很多type属性,大大增加了input控件的应用场景.其中一个是type="range"的input控件,可以通过拖动游标改变value值,但并不是所有浏览器都可以实时显示,除了IE10+浏览器 说到改变value值的事件,首先想到的便是change事件,但change事件的触发条件是失去焦点并且value值改变.而游标拖动并没有失去焦点.所以,change事件并不能达

JavaScript经典代码【一】【javascript HTML控件获取值】

javascript HTML控件获取值 1.下拉列表框选定值 ddlPageSize.options[ddlPageSize.selectedIndex].value ddlPageSize.options[ddlPageSize.selectedIndex].text 复选框 $get('chkGoogle').checked 控件隐藏与显示: document.getElementById("控件名").style.display='' //显示 document.getElem

如何获取Iframe的页面控件的值

有时候我们在页面需要使用iframe的方法来引用另一个页面,虽然个人建议不要使用iframe哈,但是有些时候是没得法了才使用的咯,那么在使用的过程中也会遇到某一些问题,我将自己遇到的问题记录下来方便以后的朋友在遇到了此问题少走弯路!!! 假如我首页index.hmtl使用了iframe引用了child.html页面代码如下: <div> <div class="panel panel-default"> <div> <div class=&qu

4、CRM2011编程实战——将窗体中指定控件的值做处理后更新到另一个字段中

需求:将接报时间加上到期提醒时间后得到的值,更新到字段"到期截止时间" Js调用: //设置到期截止时间 function setDeadLine(){ var recordId = Xrm.Page.data.entity.getId(); var entityName = Xrm.Page.data.entity.getEntityName(); var reportedTime = Xrm.Page.getControl("hxcs_fdatetimeofrequest