qq_43412960 2018-12-16 05:57 采纳率: 78.6%
浏览 541
已结题

关于C#的一个超高难度状态栏问题

图片说明
为什么?
namespace Windows窗体应用综合
{
partial class FrmMain
{
///
/// Required designer variable.
///
private System.ComponentModel.IContainer components = null;

    /// <summary>
    /// Clean up any resources being used.
    /// </summary>
    /// <param name="disposing">true if managed resources should be disposed; otherwise, false.</param>
    protected override void Dispose(bool disposing)
    {
        if (disposing && (components != null))
        {
            components.Dispose();
        }
        base.Dispose(disposing);
    }

    #region Windows Form Designer generated code

    /// <summary>
    /// Required method for Designer support - do not modify
    /// the contents of this method with the code editor.
    /// </summary>
    private void InitializeComponent()
    {
        System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(FrmMain));
        this.menuStrip1 = new System.Windows.Forms.MenuStrip();
        this.系统ToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
        this.退出ToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
        this.学生ToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
        this.增加ToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
        this.修改ToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
        this.删除ToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
        this.帮助ToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
        this.关于ToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
        this.toolStrip1 = new System.Windows.Forms.ToolStrip();
        this.btnAddStudent = new System.Windows.Forms.ToolStripButton();
        this.btnUpdateStudent = new System.Windows.Forms.ToolStripButton();
        this.toolStripButton4 = new System.Windows.Forms.ToolStripButton();
        this.toolStripSeparator1 = new System.Windows.Forms.ToolStripSeparator();
        this.toolStripButton3 = new System.Windows.Forms.ToolStripButton();
        this.statusStrip1 = new System.Windows.Forms.StatusStrip();
        this.lblLoginUser = new System.Windows.Forms.ToolStripStatusLabel();
        this.splitContainer1 = new System.Windows.Forms.SplitContainer();
        this.treeView1 = new System.Windows.Forms.TreeView();
        this.splitContainer2 = new System.Windows.Forms.SplitContainer();
        this.lvStudent = new System.Windows.Forms.ListView();
        this.columnHeader1 = ((System.Windows.Forms.ColumnHeader)(new System.Windows.Forms.ColumnHeader()));
        this.columnHeader2 = ((System.Windows.Forms.ColumnHeader)(new System.Windows.Forms.ColumnHeader()));
        this.columnHeader3 = ((System.Windows.Forms.ColumnHeader)(new System.Windows.Forms.ColumnHeader()));
        this.columnHeader4 = ((System.Windows.Forms.ColumnHeader)(new System.Windows.Forms.ColumnHeader()));
        this.columnHeader5 = ((System.Windows.Forms.ColumnHeader)(new System.Windows.Forms.ColumnHeader()));
        this.columnHeader6 = ((System.Windows.Forms.ColumnHeader)(new System.Windows.Forms.ColumnHeader()));
        this.listBox1 = new System.Windows.Forms.ListBox();
        this.toolStripStatusLabel1 = new System.Windows.Forms.ToolStripStatusLabel();
        this.menuStrip1.SuspendLayout();
        this.toolStrip1.SuspendLayout();
        this.statusStrip1.SuspendLayout();
        ((System.ComponentModel.ISupportInitialize)(this.splitContainer1)).BeginInit();
        this.splitContainer1.Panel1.SuspendLayout();
        this.splitContainer1.Panel2.SuspendLayout();
        this.splitContainer1.SuspendLayout();
        ((System.ComponentModel.ISupportInitialize)(this.splitContainer2)).BeginInit();
        this.splitContainer2.Panel1.SuspendLayout();
        this.splitContainer2.Panel2.SuspendLayout();
        this.splitContainer2.SuspendLayout();
        this.SuspendLayout();
        // 
        // menuStrip1
        // 
        this.menuStrip1.ImageScalingSize = new System.Drawing.Size(20, 20);
        this.menuStrip1.Items.AddRange(new System.Windows.Forms.ToolStripItem[] {
        this.系统ToolStripMenuItem,
        this.学生ToolStripMenuItem,
        this.帮助ToolStripMenuItem});
        this.menuStrip1.Location = new System.Drawing.Point(0, 0);
        this.menuStrip1.Name = "menuStrip1";
        this.menuStrip1.Size = new System.Drawing.Size(1147, 28);
        this.menuStrip1.TabIndex = 0;
        this.menuStrip1.Text = "menuStrip1";
        // 
        // 系统ToolStripMenuItem
        // 
        this.系统ToolStripMenuItem.DropDownItems.AddRange(new System.Windows.Forms.ToolStripItem[] {
        this.退出ToolStripMenuItem});
        this.系统ToolStripMenuItem.Name = "系统ToolStripMenuItem";
        this.系统ToolStripMenuItem.Size = new System.Drawing.Size(51, 24);
        this.系统ToolStripMenuItem.Text = "系统";
        // 
        // 退出ToolStripMenuItem
        // 
        this.退出ToolStripMenuItem.Name = "退出ToolStripMenuItem";
        this.退出ToolStripMenuItem.Size = new System.Drawing.Size(114, 26);
        this.退出ToolStripMenuItem.Text = "退出";
        // 
        // 学生ToolStripMenuItem
        // 
        this.学生ToolStripMenuItem.DropDownItems.AddRange(new System.Windows.Forms.ToolStripItem[] {
        this.增加ToolStripMenuItem,
        this.修改ToolStripMenuItem,
        this.删除ToolStripMenuItem});
        this.学生ToolStripMenuItem.Name = "学生ToolStripMenuItem";
        this.学生ToolStripMenuItem.Size = new System.Drawing.Size(51, 24);
        this.学生ToolStripMenuItem.Text = "学生";
        // 
        // 增加ToolStripMenuItem
        // 
        this.增加ToolStripMenuItem.Name = "增加ToolStripMenuItem";
        this.增加ToolStripMenuItem.Size = new System.Drawing.Size(114, 26);
        this.增加ToolStripMenuItem.Text = "增加";
        // 
        // 修改ToolStripMenuItem
        // 
        this.修改ToolStripMenuItem.Name = "修改ToolStripMenuItem";
        this.修改ToolStripMenuItem.Size = new System.Drawing.Size(114, 26);
        this.修改ToolStripMenuItem.Text = "修改";
        // 
        // 删除ToolStripMenuItem
        // 
        this.删除ToolStripMenuItem.Name = "删除ToolStripMenuItem";
        this.删除ToolStripMenuItem.Size = new System.Drawing.Size(114, 26);
        this.删除ToolStripMenuItem.Text = "删除";
        // 
        // 帮助ToolStripMenuItem
        // 
        this.帮助ToolStripMenuItem.DropDownItems.AddRange(new System.Windows.Forms.ToolStripItem[] {
        this.关于ToolStripMenuItem});
        this.帮助ToolStripMenuItem.Name = "帮助ToolStripMenuItem";
        this.帮助ToolStripMenuItem.Size = new System.Drawing.Size(51, 24);
        this.帮助ToolStripMenuItem.Text = "帮助";
        // 
        // 关于ToolStripMenuItem
        // 
        this.关于ToolStripMenuItem.Name = "关于ToolStripMenuItem";
        this.关于ToolStripMenuItem.Size = new System.Drawing.Size(114, 26);
        this.关于ToolStripMenuItem.Text = "关于";
        // 
        // toolStrip1
        // 
        this.toolStrip1.ImageScalingSize = new System.Drawing.Size(48, 48);
        this.toolStrip1.Items.AddRange(new System.Windows.Forms.ToolStripItem[] {
        this.btnAddStudent,
        this.btnUpdateStudent,
        this.toolStripButton4,
        this.toolStripSeparator1,
        this.toolStripButton3});
        this.toolStrip1.Location = new System.Drawing.Point(0, 28);
        this.toolStrip1.Name = "toolStrip1";
        this.toolStrip1.Size = new System.Drawing.Size(1147, 75);
        this.toolStrip1.TabIndex = 1;
        this.toolStrip1.Text = "toolStrip1";
        // 
        // btnAddStudent
        // 
        this.btnAddStudent.Image = ((System.Drawing.Image)(resources.GetObject("btnAddStudent.Image")));
        this.btnAddStudent.ImageTransparentColor = System.Drawing.Color.Magenta;
        this.btnAddStudent.Name = "btnAddStudent";
        this.btnAddStudent.Size = new System.Drawing.Size(73, 72);
        this.btnAddStudent.Text = "增加学生";
        this.btnAddStudent.TextImageRelation = System.Windows.Forms.TextImageRelation.ImageAboveText;
        // 
        // btnUpdateStudent
        // 
        this.btnUpdateStudent.Image = ((System.Drawing.Image)(resources.GetObject("btnUpdateStudent.Image")));
        this.btnUpdateStudent.ImageTransparentColor = System.Drawing.Color.Magenta;
        this.btnUpdateStudent.Name = "btnUpdateStudent";
        this.btnUpdateStudent.Size = new System.Drawing.Size(73, 72);
        this.btnUpdateStudent.Text = "修改学生";
        this.btnUpdateStudent.TextImageRelation = System.Windows.Forms.TextImageRelation.ImageAboveText;
        // 
        // toolStripButton4
        // 
        this.toolStripButton4.Image = ((System.Drawing.Image)(resources.GetObject("toolStripButton4.Image")));
        this.toolStripButton4.ImageTransparentColor = System.Drawing.Color.Magenta;
        this.toolStripButton4.Name = "toolStripButton4";
        this.toolStripButton4.Size = new System.Drawing.Size(73, 72);
        this.toolStripButton4.Text = "删除学生";
        this.toolStripButton4.TextImageRelation = System.Windows.Forms.TextImageRelation.ImageAboveText;
        // 
        // toolStripSeparator1
        // 
        this.toolStripSeparator1.Name = "toolStripSeparator1";
        this.toolStripSeparator1.Size = new System.Drawing.Size(6, 75);
        // 
        // toolStripButton3
        // 
        this.toolStripButton3.Image = ((System.Drawing.Image)(resources.GetObject("toolStripButton3.Image")));
        this.toolStripButton3.ImageTransparentColor = System.Drawing.Color.Magenta;
        this.toolStripButton3.Name = "toolStripButton3";
        this.toolStripButton3.Size = new System.Drawing.Size(73, 72);
        this.toolStripButton3.Text = "退出系统";
        this.toolStripButton3.TextImageRelation = System.Windows.Forms.TextImageRelation.ImageAboveText;
        // 
        // statusStrip1
        // 
        this.statusStrip1.ImageScalingSize = new System.Drawing.Size(20, 20);
        this.statusStrip1.Items.AddRange(new System.Windows.Forms.ToolStripItem[] {
        this.lblLoginUser,
        this.toolStripStatusLabel1});
        this.statusStrip1.Location = new System.Drawing.Point(0, 607);
        this.statusStrip1.Name = "statusStrip1";
        this.statusStrip1.Size = new System.Drawing.Size(1147, 24);
        this.statusStrip1.TabIndex = 3;
        this.statusStrip1.Text = "statusStrip1";
        this.statusStrip1.ItemClicked += new System.Windows.Forms.ToolStripItemClickedEventHandler(this.statusStrip1_ItemClicked);
        // 
        // lblLoginUser
        // 
        this.lblLoginUser.BorderSides = ((System.Windows.Forms.ToolStripStatusLabelBorderSides)((((System.Windows.Forms.ToolStripStatusLabelBorderSides.Left | System.Windows.Forms.ToolStripStatusLabelBorderSides.Top) 
        | System.Windows.Forms.ToolStripStatusLabelBorderSides.Right) 
        | System.Windows.Forms.ToolStripStatusLabelBorderSides.Bottom)));
        this.lblLoginUser.BorderStyle = System.Windows.Forms.Border3DStyle.SunkenInner;
        this.lblLoginUser.Name = "lblLoginUser";
        this.lblLoginUser.Size = new System.Drawing.Size(1093, 19);
        this.lblLoginUser.Spring = true;
        this.lblLoginUser.Click += new System.EventHandler(this.lblLoginUser_Click);
        // 
        // splitContainer1
        // 
        this.splitContainer1.Dock = System.Windows.Forms.DockStyle.Fill;
        this.splitContainer1.Location = new System.Drawing.Point(0, 103);
        this.splitContainer1.Name = "splitContainer1";
        // 
        // splitContainer1.Panel1
        // 
        this.splitContainer1.Panel1.Controls.Add(this.treeView1);
        // 
        // splitContainer1.Panel2
        // 
        this.splitContainer1.Panel2.Controls.Add(this.splitContainer2);
        this.splitContainer1.Size = new System.Drawing.Size(1147, 504);
        this.splitContainer1.SplitterDistance = 382;
        this.splitContainer1.TabIndex = 4;
        // 
        // treeView1
        // 
        this.treeView1.Dock = System.Windows.Forms.DockStyle.Fill;
        this.treeView1.Location = new System.Drawing.Point(0, 0);
        this.treeView1.Name = "treeView1";
        this.treeView1.Size = new System.Drawing.Size(382, 504);
        this.treeView1.TabIndex = 0;
        // 
        // splitContainer2
        // 
        this.splitContainer2.Dock = System.Windows.Forms.DockStyle.Fill;
        this.splitContainer2.Location = new System.Drawing.Point(0, 0);
        this.splitContainer2.Name = "splitContainer2";
        this.splitContainer2.Orientation = System.Windows.Forms.Orientation.Horizontal;
        // 
        // splitContainer2.Panel1
        // 
        this.splitContainer2.Panel1.Controls.Add(this.lvStudent);
        // 
        // splitContainer2.Panel2
        // 
        this.splitContainer2.Panel2.Controls.Add(this.listBox1);
        this.splitContainer2.Size = new System.Drawing.Size(761, 504);
        this.splitContainer2.SplitterDistance = 294;
        this.splitContainer2.TabIndex = 0;
        // 
        // lvStudent
        // 
        this.lvStudent.Columns.AddRange(new System.Windows.Forms.ColumnHeader[] {
        this.columnHeader1,
        this.columnHeader2,
        this.columnHeader3,
        this.columnHeader4,
        this.columnHeader5,
        this.columnHeader6});
        this.lvStudent.Dock = System.Windows.Forms.DockStyle.Fill;
        this.lvStudent.Font = new System.Drawing.Font("微软雅黑", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
        this.lvStudent.GridLines = true;
        this.lvStudent.Location = new System.Drawing.Point(0, 0);
        this.lvStudent.Name = "lvStudent";
        this.lvStudent.Size = new System.Drawing.Size(761, 294);
        this.lvStudent.TabIndex = 0;
        this.lvStudent.UseCompatibleStateImageBehavior = false;
        this.lvStudent.View = System.Windows.Forms.View.Details;
        // 
        // columnHeader1
        // 
        this.columnHeader1.Text = "学号";
        this.columnHeader1.Width = 129;
        // 
        // columnHeader2
        // 
        this.columnHeader2.Text = "姓名";
        this.columnHeader2.Width = 100;
        // 
        // columnHeader3
        // 
        this.columnHeader3.Text = "性别";
        this.columnHeader3.Width = 80;
        // 
        // columnHeader4
        // 
        this.columnHeader4.Text = "年级";
        this.columnHeader4.Width = 100;
        // 
        // columnHeader5
        // 
        this.columnHeader5.Text = "专业";
        this.columnHeader5.Width = 100;
        // 
        // columnHeader6
        // 
        this.columnHeader6.Text = "备注";
        this.columnHeader6.Width = 300;
        // 
        // listBox1
        // 
        this.listBox1.Dock = System.Windows.Forms.DockStyle.Fill;
        this.listBox1.FormattingEnabled = true;
        this.listBox1.ItemHeight = 15;
        this.listBox1.Location = new System.Drawing.Point(0, 0);
        this.listBox1.Name = "listBox1";
        this.listBox1.Size = new System.Drawing.Size(761, 206);
        this.listBox1.TabIndex = 0;
        // 
        // toolStripStatusLabel1
        // 
        this.toolStripStatusLabel1.Name = "toolStripStatusLabel1";
        this.toolStripStatusLabel1.Size = new System.Drawing.Size(0, 19);
        // 
        // FrmMain
        // 
        this.AutoScaleDimensions = new System.Drawing.SizeF(8F, 15F);
        this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
        this.ClientSize = new System.Drawing.Size(1147, 631);
        this.Controls.Add(this.splitContainer1);
        this.Controls.Add(this.statusStrip1);
        this.Controls.Add(this.toolStrip1);
        this.Controls.Add(this.menuStrip1);
        this.Icon = ((System.Drawing.Icon)(resources.GetObject("$this.Icon")));
        this.MainMenuStrip = this.menuStrip1;
        this.Name = "FrmMain";
        this.Text = "  ";
        this.menuStrip1.ResumeLayout(false);
        this.menuStrip1.PerformLayout();
        this.toolStrip1.ResumeLayout(false);
        this.toolStrip1.PerformLayout();
        this.statusStrip1.ResumeLayout(false);
        this.statusStrip1.PerformLayout();
        this.splitContainer1.Panel1.ResumeLayout(false);
        this.splitContainer1.Panel2.ResumeLayout(false);
        ((System.ComponentModel.ISupportInitialize)(this.splitContainer1)).EndInit();
        this.splitContainer1.ResumeLayout(false);
        this.splitContainer2.Panel1.ResumeLayout(false);
        this.splitContainer2.Panel2.ResumeLayout(false);
        ((System.ComponentModel.ISupportInitialize)(this.splitContainer2)).EndInit();
        this.splitContainer2.ResumeLayout(false);
        this.ResumeLayout(false);
        this.PerformLayout();

    }

    #endregion

    private System.Windows.Forms.MenuStrip menuStrip1;
    private System.Windows.Forms.ToolStripMenuItem 系统ToolStripMenuItem;
    private System.Windows.Forms.ToolStripMenuItem 退出ToolStripMenuItem;
    private System.Windows.Forms.ToolStripMenuItem 学生ToolStripMenuItem;
    private System.Windows.Forms.ToolStripMenuItem 增加ToolStripMenuItem;
    private System.Windows.Forms.ToolStripMenuItem 修改ToolStripMenuItem;
    private System.Windows.Forms.ToolStripMenuItem 删除ToolStripMenuItem;
    private System.Windows.Forms.ToolStripMenuItem 帮助ToolStripMenuItem;
    private System.Windows.Forms.ToolStripMenuItem 关于ToolStripMenuItem;
    private System.Windows.Forms.ToolStrip toolStrip1;
    private System.Windows.Forms.ToolStripButton btnAddStudent;
    private System.Windows.Forms.ToolStripButton btnUpdateStudent;
    private System.Windows.Forms.ToolStripButton toolStripButton4;
    private System.Windows.Forms.ToolStripButton toolStripButton3;
    private System.Windows.Forms.ToolStripSeparator toolStripSeparator1;
    private System.Windows.Forms.StatusStrip statusStrip1;
    private System.Windows.Forms.SplitContainer splitContainer1;
    private System.Windows.Forms.TreeView treeView1;
    private System.Windows.Forms.SplitContainer splitContainer2;
    private System.Windows.Forms.ListView lvStudent;
    private System.Windows.Forms.ListBox listBox1;
    private System.Windows.Forms.ToolStripStatusLabel lblLoginUser;
    private System.Windows.Forms.ColumnHeader columnHeader1;
    private System.Windows.Forms.ColumnHeader columnHeader2;
    private System.Windows.Forms.ColumnHeader columnHeader3;
    private System.Windows.Forms.ColumnHeader columnHeader4;
    private System.Windows.Forms.ColumnHeader columnHeader5;
    private System.Windows.Forms.ColumnHeader columnHeader6;
    private System.Windows.Forms.ToolStripStatusLabel toolStripStatusLabel1;
}

}这是我删了第二个状态栏后,design代码

  • 写回答

2条回答 默认 最新

  • threenewbee 2018-12-16 06:01
    关注

    把你的designer.cs文件再贴出来看看吧。我这里都是没问题的。很奇怪。

    评论

报告相同问题?

悬赏问题

  • ¥20 ML307A在使用AT命令连接EMQX平台的MQTT时被拒绝
  • ¥20 腾讯企业邮箱邮件可以恢复么
  • ¥15 有人知道怎么将自己的迁移策略布到edgecloudsim上使用吗?
  • ¥15 错误 LNK2001 无法解析的外部符号
  • ¥50 安装pyaudiokits失败
  • ¥15 计组这些题应该咋做呀
  • ¥60 更换迈创SOL6M4AE卡的时候,驱动要重新装才能使用,怎么解决?
  • ¥15 让node服务器有自动加载文件的功能
  • ¥15 jmeter脚本回放有的是对的有的是错的
  • ¥15 r语言蛋白组学相关问题