我的标签被锁定/灰显

时间:2017-01-16 00:14:45

标签: c# tabs tabcontrol

由于某种原因,Visual Studio中tabControl项目内的选项卡显示为灰色。它不允许我从标签切换到标签,标签内的项目也是灰色的,所以我无法点击任何内容。

我检查了tabControl设置和各个tabPages设置,并且Locked属性设置为" FALSE"所以它不应该那样。

知道它可能是什么吗?

这是我tabControl的designer.cs代码:

        // tabControl1
        // 
        this.tabControl1.Controls.Add(this.tabPage1);
        this.tabControl1.Controls.Add(this.tabPage2);
        this.tabControl1.Controls.Add(this.tabPage3);
        this.tabControl1.ImageList = this.imageList1;
        this.tabControl1.Location = new System.Drawing.Point(12, 12);
        this.tabControl1.Name = "tabControl1";
        this.tabControl1.SelectedIndex = 0;
        this.tabControl1.Size = new System.Drawing.Size(466, 218);
        this.tabControl1.TabIndex = 0;
        //// 
        // tabPage1
        // 
        this.tabPage1.Controls.Add(this.buttonStopUTUBE);
        this.tabPage1.Controls.Add(this.buttonStartUTUBE);
        this.tabPage1.Controls.Add(this.numericUpDown1);
        this.tabPage1.Controls.Add(this.numericUpDownYouTubeRun);
        this.tabPage1.Controls.Add(this.listBoxYoutube5);
        this.tabPage1.Controls.Add(this.listBoxYoutube4);
        this.tabPage1.Controls.Add(this.listBoxYoutube3);
        this.tabPage1.Controls.Add(this.label8);
        this.tabPage1.Controls.Add(this.labelYouTubeRunsLeft);
        this.tabPage1.Controls.Add(this.label2);
        this.tabPage1.Controls.Add(this.label1);
        this.tabPage1.ImageIndex = 0;
        this.tabPage1.Location = new System.Drawing.Point(4, 28);
        this.tabPage1.Name = "tabPage1";
        this.tabPage1.Padding = new System.Windows.Forms.Padding(3);
        this.tabPage1.Size = new System.Drawing.Size(458, 186);
        this.tabPage1.TabIndex = 0;
        this.tabPage1.Text = "YouTube Video";
        this.tabPage1.UseVisualStyleBackColor = true;
        // 
        // tabPage2
        // 
        this.tabPage2.Controls.Add(this.buttonSTOPWEBSITE);
        this.tabPage2.Controls.Add(this.buttonSTARTWEBSITE);
        this.tabPage2.Controls.Add(this.listBoxWebsites);
        this.tabPage2.Controls.Add(this.richTextBox1);
        this.tabPage2.Controls.Add(this.numericUpDownWEBSITE);
        this.tabPage2.Controls.Add(this.label9);
        this.tabPage2.Controls.Add(this.label5);
        this.tabPage2.Controls.Add(this.label3);
        this.tabPage2.ImageIndex = 1;
        this.tabPage2.Location = new System.Drawing.Point(4, 28);
        this.tabPage2.Name = "tabPage2";
        this.tabPage2.Padding = new System.Windows.Forms.Padding(3);
        this.tabPage2.Size = new System.Drawing.Size(458, 186);
        this.tabPage2.TabIndex = 1;
        this.tabPage2.Text = "Website";
        this.tabPage2.UseVisualStyleBackColor = true;
        // 
        // tabPage3
        // 
        this.tabPage3.Controls.Add(this.button1);
        this.tabPage3.Controls.Add(this.txtYPassword);
        this.tabPage3.Controls.Add(this.txtYUsername);
        this.tabPage3.Controls.Add(this.label12);
        this.tabPage3.Controls.Add(this.label7);
        this.tabPage3.ImageIndex = 2;
        this.tabPage3.Location = new System.Drawing.Point(4, 28);
        this.tabPage3.Name = "tabPage3";
        this.tabPage3.Padding = new System.Windows.Forms.Padding(3);
        this.tabPage3.Size = new System.Drawing.Size(458, 186);
        this.tabPage3.TabIndex = 2;
        this.tabPage3.Text = "Settings";
        this.tabPage3.UseVisualStyleBackColor = true;
        // 

0 个答案:

没有答案