で問題が発生していTableLayoutPanel
ます。テーブルの列と行のサイズがほとんど動的であるように構成しましたが、保存または他の変更を行った後に動的スケーリングが機能せず (この問題がいつ始まったのか正確にはわかりません)、テーブルのサイズを変更しようとしています国境。私のテーブルの構成を以下に示します
。
変更なしの例 (白い四角は単なる写真編集です..):
例 2 http://dl.dropbox.com/s/08zhm19264r3qzf/original.jpg
境界線のサイズ変更の例:
例 3 http://dl.dropbox.com/s/gelxjb8s2ip5bzj/after.jpg
ここでは、サイズ変更された境界線に応じてスケーリングする必要がありますが、そうではありません。Google で自分の状況に近い答えを見つけることができませんでしたが、初めてテーブルを作成してサイズを変更したときに、思ったとおりに完全に機能していたので、何が間違っているのでしょうか。
TableLayoutPanel の designer.cs コードを追加しました。
//
// tableLayoutPanel2
//
this.tableLayoutPanel2.ColumnCount = 5;
this.tableLayoutPanel2.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Absolute, 50F));
this.tableLayoutPanel2.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 25F));
this.tableLayoutPanel2.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 25F));
this.tableLayoutPanel2.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 25F));
this.tableLayoutPanel2.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 25F));
this.tableLayoutPanel2.Controls.Add(this.buttonFirstClockSecondDay_Type_A, 3, 1);
this.tableLayoutPanel2.Controls.Add(this.textBox1, 1, 0);
this.tableLayoutPanel2.Controls.Add(this.textBox2, 2, 0);
this.tableLayoutPanel2.Controls.Add(this.label5, 0, 1);
this.tableLayoutPanel2.Controls.Add(this.label1, 0, 3);
this.tableLayoutPanel2.Controls.Add(this.label6, 0, 5);
this.tableLayoutPanel2.Controls.Add(this.label7, 0, 7);
this.tableLayoutPanel2.Controls.Add(this.buttonFirstClockFirstDay_Type_A, 1, 1);
this.tableLayoutPanel2.Controls.Add(this.buttonFirstClockFirstDay_Type_B, 1, 2);
this.tableLayoutPanel2.Controls.Add(this.buttonSecondClockFirstDay_Type_A, 1, 3);
this.tableLayoutPanel2.Controls.Add(this.buttonSecondClockFirstDay_Type_B, 1, 4);
this.tableLayoutPanel2.Controls.Add(this.buttonFirstClockSecondDay_Type_B, 3, 2);
this.tableLayoutPanel2.Controls.Add(this.buttonSecondClockSecondDay_Type_A, 3, 3);
this.tableLayoutPanel2.Controls.Add(this.buttonSecondClockSecondDay_Type_B, 3, 4);
this.tableLayoutPanel2.Controls.Add(this.buttonThirdClockFirstDay_Type_A, 1, 5);
this.tableLayoutPanel2.Controls.Add(this.buttonThirdClockFirstDay_Type_B, 1, 6);
this.tableLayoutPanel2.Controls.Add(this.buttonFourthClockFirstDay_Type_A, 1, 7);
this.tableLayoutPanel2.Controls.Add(this.buttonFourthClockFirstDay_Type_B, 1, 8);
this.tableLayoutPanel2.Controls.Add(this.buttonThirdClockSecondDay_Type_A, 3, 5);
this.tableLayoutPanel2.Controls.Add(this.buttonThirdClockSecondDay_Type_B, 3, 6);
this.tableLayoutPanel2.Controls.Add(this.buttonFourthClockSecondDay_Type_A, 3, 7);
this.tableLayoutPanel2.Controls.Add(this.buttonFourthClockSecondDay_Type_B, 3, 8);
this.tableLayoutPanel2.Controls.Add(this.label3, 2, 1);
this.tableLayoutPanel2.Controls.Add(this.label2, 2, 2);
this.tableLayoutPanel2.Controls.Add(this.label8, 2, 3);
this.tableLayoutPanel2.Controls.Add(this.label4, 2, 4);
this.tableLayoutPanel2.Controls.Add(this.label14, 2, 5);
this.tableLayoutPanel2.Controls.Add(this.label13, 2, 6);
this.tableLayoutPanel2.Controls.Add(this.label15, 2, 7);
this.tableLayoutPanel2.Controls.Add(this.label19, 2, 8);
this.tableLayoutPanel2.Controls.Add(this.label10, 4, 1);
this.tableLayoutPanel2.Controls.Add(this.label11, 4, 2);
this.tableLayoutPanel2.Controls.Add(this.label9, 4, 3);
this.tableLayoutPanel2.Controls.Add(this.label12, 4, 4);
this.tableLayoutPanel2.Controls.Add(this.label17, 4, 5);
this.tableLayoutPanel2.Controls.Add(this.label18, 4, 6);
this.tableLayoutPanel2.Controls.Add(this.label16, 4, 7);
this.tableLayoutPanel2.Controls.Add(this.label20, 4, 8);
this.tableLayoutPanel2.Location = new System.Drawing.Point(382, 56);
this.tableLayoutPanel2.Name = "tableLayoutPanel2";
this.tableLayoutPanel2.RowCount = 9;
this.tableLayoutPanel2.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Absolute, 25F));
this.tableLayoutPanel2.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Percent, 12.5F));
this.tableLayoutPanel2.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Percent, 12.5F));
this.tableLayoutPanel2.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Percent, 12.5F));
this.tableLayoutPanel2.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Percent, 12.5F));
this.tableLayoutPanel2.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Percent, 12.5F));
this.tableLayoutPanel2.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Percent, 12.5F));
this.tableLayoutPanel2.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Percent, 12.5F));
this.tableLayoutPanel2.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Percent, 12.5F));
this.tableLayoutPanel2.Size = new System.Drawing.Size(437, 288);
this.tableLayoutPanel2.TabIndex = 6;
this.tableLayoutPanel2.Paint += new System.Windows.Forms.PaintEventHandler(this.tableLayoutPanel2_Paint);