移除toolStripContainer及其ContentPanel的固定大小限制,确保窗口最大化时按钮能在一行显示
This commit is contained in:
@@ -110,11 +110,13 @@ namespace JoyD.Windows.CS
|
|||||||
//
|
//
|
||||||
this.toolStripContainer.ContentPanel.AutoScroll = true;
|
this.toolStripContainer.ContentPanel.AutoScroll = true;
|
||||||
this.toolStripContainer.ContentPanel.Controls.Add(this.dataGridViewTempDiff);
|
this.toolStripContainer.ContentPanel.Controls.Add(this.dataGridViewTempDiff);
|
||||||
this.toolStripContainer.ContentPanel.Size = new System.Drawing.Size(250, 420);
|
// 移除固定大小设置,让ContentPanel能根据toolStripContainer自动调整大小
|
||||||
|
this.toolStripContainer.ContentPanel.Size = new System.Drawing.Size(0, 0);
|
||||||
this.toolStripContainer.Dock = System.Windows.Forms.DockStyle.Fill;
|
this.toolStripContainer.Dock = System.Windows.Forms.DockStyle.Fill;
|
||||||
this.toolStripContainer.Location = new System.Drawing.Point(0, 0);
|
this.toolStripContainer.Location = new System.Drawing.Point(0, 0);
|
||||||
this.toolStripContainer.Name = "toolStripContainer";
|
this.toolStripContainer.Name = "toolStripContainer";
|
||||||
this.toolStripContainer.Size = new System.Drawing.Size(250, 450);
|
// 移除固定大小设置,让toolStripContainer能根据Form自动调整大小
|
||||||
|
this.toolStripContainer.Size = new System.Drawing.Size(0, 0);
|
||||||
this.toolStripContainer.TabIndex = 0;
|
this.toolStripContainer.TabIndex = 0;
|
||||||
this.toolStripContainer.Text = "toolStripContainer";
|
this.toolStripContainer.Text = "toolStripContainer";
|
||||||
//
|
//
|
||||||
|
|||||||
Reference in New Issue
Block a user