问题是这样的:
程序启动的时候,最上方的按钮栏(就是些保存,打开,撤销的图标)看不到,需要侧边的滚动条拉上去才能看到上方的按钮栏
在进行其他一些操作的时候(比如,在客户区画一条直线),这时按钮栏又看不到了,还是需要将滚动条拉上去才行
这可能是什么原因造成的?应该怎么解决呢?

解决方案 »

  1.   

    是一个工具条toolbar下面的代码应该是控制整个窗口布局的吧this.AutoScroll = true;
    this.AutoScrollMinSize = new System.Drawing.Size(1093, 1500);
    this.Controls.Add(this.comboBox1);
    this.Controls.Add(this.panel1);
    this.Controls.Add(this.toolBar1);
    this.Controls.Add(this.tabControl1);
    this.Name = "UserControl1";
    this.Size = new System.Drawing.Size(883, 375);
    this.panel1.ResumeLayout(false);
    this.tabControl1.ResumeLayout(false);
    this.tabPage1.ResumeLayout(false);
    this.tabPage3.ResumeLayout(false);
    this.tabPage2.ResumeLayout(false);
    this.tabPage4.ResumeLayout(false);
    ((System.ComponentModel.ISupportInitialize)(this.dataSet11)).EndInit();
    ((System.ComponentModel.ISupportInitialize)(this.dataSet21)).EndInit();
    ((System.ComponentModel.ISupportInitialize)(this.dataSet31)).EndInit();
    ((System.ComponentModel.ISupportInitialize)(this.dataSet41)).EndInit();
    this.ResumeLayout(false);由于代码太长,贴上来肯定不现实,只能贴点主要的了
    请帮忙看看有什么问题没有?
      

  2.   

    整个窗口感觉都不稳定,老是在一个地方点击,滚动条就会自动滚到下面去!
    在切换TabPage的时候也会有这样的问题