开发者

winforms designer behavior issue (tabs changed automatically, when trying put control on it)

开发者 https://www.devze.com 2023-04-12 06:03 出处:网络
VS 2010 I have simple win forms without code, just tab with 3 pages and buttons on each tabpage. When i trying to put buttonon tabpage (on the left side of page it works fine, if i trying to put btn

VS 2010 I have simple win forms without code, just tab with 3 pages and buttons on each tabpage.

When i trying to put button on tabpage (on the left side of page it works fine, if i trying to put btn on right side of the page ...the designer will automatically change tabpage to another

Maybe problems is in this code

  this.tabControl1.SuspendLayout();
   this.WindowState = System.Windows.Forms.FormWindowState.Maximi开发者_如何学JAVAzed;
 this.groupBox8.ResumeLayout(false);
  this.groupBox8.PerformLayout();
   ((System.ComponentModel.ISupportInitialize)(this.dataGridView2)).EndInit();

P.S. When i delete all controls from one my tab(which always selected automatically) and designer work fine Later i delete rectangle controls(they are from Visual basic power pack and now designer works fine)


Problem solved wheni deleted Visual Basic power pack rectangle controls from my page tab. This control have bug in vs 2010

0

精彩评论

暂无评论...
验证码 换一张
取 消