Tabcontrol设计师的问题 [英] Tabcontrol designer problem
本文介绍了Tabcontrol设计师的问题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我真的不知道为什么tabcontrol中控件的大小和位置会在设计器中自动更改,首先我想也许是因为groupboxes,我用面板替换了groupbox,但我仍然在这个解决方案中遇到这个问题在另一个解决方案中。
这里是图片:
图片
似乎当我改变大小时表格并关闭它然后重新打开表格,问题就发生了。
这是表格的设计者:
I really don't know why the size and location of controls in tabcontrol changes automatically in designer, first i thought maybe it's because of groupboxes, the i replaced the groupbox with panels, but i still have this problem in this solution and in another solution either.
here is the picture:
Picture
it seems that when i change the size of the form and close it and then reopen the form, the problem happens.
this is the designer of the form:
this.AutoScaleDimensions = new System.Drawing.SizeF(7F, 14F);
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
this.ClientSize = new System.Drawing.Size(682, 412);
this.Controls.Add(this.btnExit);
this.Controls.Add(this.tabControl);
this.DoubleBuffered = true;
this.Font = new System.Drawing.Font("Tahoma", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(178)));
this.Icon = ((System.Drawing.Icon)(resources.GetObject("$this.Icon")));
this.KeyPreview = true;
this.MinimumSize = new System.Drawing.Size(618, 450);
this.Name = "Form1";
this.RightToLeft = System.Windows.Forms.RightToLeft.Yes;
this.Text = "Transfer Data";
this.MinimumSizeChanged += new System.EventHandler(this.Form1_MinimumSizeChanged);
this.FormClosing += new System.Windows.Forms.FormClosingEventHandler(this.Form1_FormClosing);
this.Load += new System.EventHandler(this.Form1_Load);
this.KeyDown += new System.Windows.Forms.KeyEventHandler(this.Form1_KeyDown);
this.Resize += new System.EventHandler(this.Form1_Resize);
this.contextMenu.ResumeLayout(false);
this.tabControl.ResumeLayout(false);
this.tabPage_TransferLog.ResumeLayout(false);
this.panel4.ResumeLayout(false);
this.panel3.ResumeLayout(false);
this.panel3.PerformLayout();
this.panel2.ResumeLayout(false);
this.panel2.PerformLayout();
this.panel1.ResumeLayout(false);
this.panel1.PerformLayout();
this.tabPage_Connections.ResumeLayout(false);
this.tabPage_Connections.PerformLayout();
((System.ComponentModel.ISupportInitialize)(this.pictureBox1)).EndInit();
this.tabPage_Settings.ResumeLayout(false);
this.tabPage_Settings.PerformLayout();
((System.ComponentModel.ISupportInitialize)(this.transferLogBindingSource)).EndInit();
this.ResumeLayout(false);
最好的问候。
best regards.
推荐答案
this.Icon)));
this .KeyPreview = true ;
this .MinimumSize = new System.Drawing.Size( 618 , 450 );
此 .Name = Form1;
this .RightToLeft = System.Windows.Forms.RightToLeft.Yes;
this .Text = 传输数据;
此 .MinimumSizeC hanged + = new System.EventHandler( this .Form1_MinimumSizeChanged);
this .FormClosing + = new System.Windows.Forms.FormClosingEventHandler(此跨度> .Form1_FormClosing);
this .Load + = new System.EventHandler(此跨度> .Form1_Load);
this .KeyDown + = new System.Windows.Forms.KeyEventHandler(此跨度> .Form1_KeyDown);
this .Resize + = new System.EventHandler(此跨度> .Form1_Resize);
this .contextMenu.ResumeLayout( false );
this .tabControl.ResumeLayout( false );
this .tabPage_TransferLog.ResumeLayout( false );
this .panel4.ResumeLayout( false );
this .panel3.ResumeLayout( false );
this .panel3.PerformLayout();
this .panel2.ResumeLayout( false );
此 .panel2.PerformLayout();
this .panel1.ResumeLayout( false );
this .panel1.PerformLayout();
this .tabPage_Connections.ResumeLayout( false );
this .tabPage_Connections.PerformLayout();
((System.ComponentModel.ISupportInitialize)( this .pictureBox1))。EndInit();
this .tabPage_Settings.ResumeLayout( false );
this .tabPage_Settings.PerformLayout();
((System.ComponentModel.ISupportInitialize)( this .transferLogBindingSource))。EndInit();
this .ResumeLayout( false );
this.Icon"))); this.KeyPreview = true; this.MinimumSize = new System.Drawing.Size(618, 450); this.Name = "Form1"; this.RightToLeft = System.Windows.Forms.RightToLeft.Yes; this.Text = "Transfer Data"; this.MinimumSizeChanged += new System.EventHandler(this.Form1_MinimumSizeChanged); this.FormClosing += new System.Windows.Forms.FormClosingEventHandler(this.Form1_FormClosing); this.Load += new System.EventHandler(this.Form1_Load); this.KeyDown += new System.Windows.Forms.KeyEventHandler(this.Form1_KeyDown); this.Resize += new System.EventHandler(this.Form1_Resize); this.contextMenu.ResumeLayout(false); this.tabControl.ResumeLayout(false); this.tabPage_TransferLog.ResumeLayout(false); this.panel4.ResumeLayout(false); this.panel3.ResumeLayout(false); this.panel3.PerformLayout(); this.panel2.ResumeLayout(false); this.panel2.PerformLayout(); this.panel1.ResumeLayout(false); this.panel1.PerformLayout(); this.tabPage_Connections.ResumeLayout(false); this.tabPage_Connections.PerformLayout(); ((System.ComponentModel.ISupportInitialize)(this.pictureBox1)).EndInit(); this.tabPage_Settings.ResumeLayout(false); this.tabPage_Settings.PerformLayout(); ((System.ComponentModel.ISupportInitialize)(this.transferLogBindingSource)).EndInit(); this.ResumeLayout(false);
最好的问候。
best regards.
这篇关于Tabcontrol设计师的问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文