滚动条隐藏在状态栏后面

时间:2021-06-15 11:25:22

标签: c# winforms

enter image description here

我写了一个记事本。但是我有一个问题,我在其他任何地方都找不到答案。当状态栏启用时,负载滚动隐藏在状态栏后面。这是一个错误。

这里是设计细节

        // StatusBar1
        // 
        this.StatusBar1.Items.AddRange(new 
  System.Windows.Forms.ToolStripItem[] {
        this.toolStripStatusLabel1,
        this.statusbar_lbl});
        this.StatusBar1.LayoutStyle = 

  System.Windows.Forms.ToolStripLayoutStyle.HorizontalStackWithOverflow;
        this.StatusBar1.Location = new System.Drawing.Point(0, 161);
        this.StatusBar1.Name = "StatusBar1";
        this.StatusBar1.Size = new System.Drawing.Size(480, 22);
        this.StatusBar1.TabIndex = 1;
        this.StatusBar1.Visible = false;

感谢任何帮助

enter image description here

1 个答案:

答案 0 :(得分:1)

所以我找到了答案。如果您强制两个滚动条保持可见,则此错误将不会再次发生。您可以在属性窗口中执行此操作。

相关问题