- c - 在位数组中找到第一个零
- linux - Unix 显示有关匹配两种模式之一的文件的信息
- 正则表达式替换多个文件
- linux - 隐藏来自 xtrace 的命令
我有一个别人写的项目,我对其中一种形式有疑问。
当我尝试在“设计模式”中打开 Form1 时,Visual Studio 2017 显示错误屏幕并返回“无法解析方法‘InitializeComponent’。解析器报告了以下错误‘无效的符号类型:NamedType’。请查看潜在错误的任务列表。”
at Microsoft.VisualStudio.Design.Serialization.CodeDom.VSCodeDomParser.OnMethodPopulateStatements(Object sender, EventArgs e)
at System.CodeDom.CodeMemberMethod.get_Statements()
at System.ComponentModel.Design.Serialization.TypeCodeDomSerializer.Deserialize(IDesignerSerializationManager manager, CodeTypeDeclaration declaration)
at System.ComponentModel.Design.Serialization.CodeDomDesignerLoader.PerformLoad(IDesignerSerializationManager manager)
at Microsoft.VisualStudio.Design.Serialization.CodeDom.VSCodeDomDesignerLoader.PerformLoad(IDesignerSerializationManager serializationManager)
at System.ComponentModel.Design.Serialization.BasicDesignerLoader.BeginLoad(IDesignerLoaderHost host)
创建新表单并手动添加所有内容时,我在 stackoverflow 上找到了一些解决方案。我可以用同样的方式做到这一点,但我想知道问题出在哪里。
抱歉某些组件的捷克语名称。
完整代码:
namespace LektorHra
{
partial class Lektor
{
protected override void Dispose(bool disposing)
{
if (disposing && this.components != null)
this.components.Dispose();
base.Dispose(disposing);
}
private void InitializeComponent()
{
this.components = (IContainer)new Container();
this.ChatBox = new System.Windows.Forms.RichTextBox();
this.textBox = new System.Windows.Forms.TextBox();
this.comboBox = new System.Windows.Forms.ComboBox();
this.buttonOdeslat = new System.Windows.Forms.Button();
this.groupBox1 = new System.Windows.Forms.GroupBox();
this.kvaSupA = new System.Windows.Forms.Button();
this.supSupervizeA = new System.Windows.Forms.Button();
this.finSuperA = new System.Windows.Forms.Button();
this.VyrobaSupervizeA = new System.Windows.Forms.Button();
this.AlabelKvalita = new System.Windows.Forms.Label();
this.AlabelSupply = new System.Windows.Forms.Label();
this.AlabelFinPer = new System.Windows.Forms.Label();
this.AlabelVyroba = new System.Windows.Forms.Label();
this.groupBox2 = new System.Windows.Forms.GroupBox();
this.kvalitaSupervizreB = new System.Windows.Forms.Button();
this.supchainSupervizeB = new System.Windows.Forms.Button();
this.finSupervizeB = new System.Windows.Forms.Button();
this.vyrobaSupervizeB = new System.Windows.Forms.Button();
this.BlabelKvalita = new System.Windows.Forms.Label();
this.BlabelSupply = new System.Windows.Forms.Label();
this.BlabelFinPer = new System.Windows.Forms.Label();
this.BlabelVyroba = new System.Windows.Forms.Label();
this.groupBox3 = new System.Windows.Forms.GroupBox();
this.kvalitaSupervizeC = new System.Windows.Forms.Button();
this.supplzSupervizeC = new System.Windows.Forms.Button();
this.vyrobaFinancniC = new System.Windows.Forms.Button();
this.vyrobaSupervizeC = new System.Windows.Forms.Button();
this.ClabelKvalita = new System.Windows.Forms.Label();
this.ClabelSupply = new System.Windows.Forms.Label();
this.ClabelFinancni = new System.Windows.Forms.Label();
this.ClabelVyroba = new System.Windows.Forms.Label();
this.timer1 = new System.Windows.Forms.Timer(this.components);
this.labelCas = new System.Windows.Forms.Label();
this.label2 = new System.Windows.Forms.Label();
this.buttonStart = new System.Windows.Forms.Button();
this.label3 = new System.Windows.Forms.Label();
this.textBoxDelkaKola = new System.Windows.Forms.TextBox();
this.timerStopky = new System.Windows.Forms.Timer(this.components);
this.buttonIniNacteni = new System.Windows.Forms.Button();
this.label1 = new System.Windows.Forms.Label();
this.label4 = new System.Windows.Forms.Label();
this.textBoxRozpocet = new System.Windows.Forms.TextBox();
this.textBoxPocetPozVy = new System.Windows.Forms.TextBox();
this.groupBox4 = new System.Windows.Forms.GroupBox();
this.label5 = new System.Windows.Forms.Label();
this.textBoxPocetKol = new System.Windows.Forms.TextBox();
this.buttonVytvoreniHry = new System.Windows.Forms.Button();
this.labelKolo = new System.Windows.Forms.Label();
this.groupBox5 = new System.Windows.Forms.GroupBox();
this.buttonVyhodnoceni = new System.Windows.Forms.Button();
this.buttonUkonceniKola = new System.Windows.Forms.Button();
this.groupBox1.SuspendLayout();
this.groupBox2.SuspendLayout();
this.groupBox3.SuspendLayout();
this.groupBox4.SuspendLayout();
this.groupBox5.SuspendLayout();
this.SuspendLayout();
this.ChatBox.Location = new System.Drawing.Point(12, 12);
this.ChatBox.Name = "ChatBox";
this.ChatBox.Size = new System.Drawing.Size(592, 342);
this.ChatBox.TabIndex = 0;
this.ChatBox.Text = "";
this.textBox.Location = new System.Drawing.Point(13, 361);
this.textBox.Name = "textBox";
this.textBox.Size = new System.Drawing.Size(591, 20);
this.textBox.TabIndex = 1;
this.comboBox.FormattingEnabled = true;
this.comboBox.Items.AddRange(new object[]
{
(object) "Všem",
(object) "Oddělení výroby",
(object) "Finanční a personální oddělení",
(object) "Oddělení Supply Chain",
(object) "Oddělení kvality a BOZP"
});
this.comboBox.Location = new System.Drawing.Point(13, 401);
this.comboBox.Name = "comboBox";
this.comboBox.Size = new System.Drawing.Size(121, 21);
this.comboBox.TabIndex = 2;
this.buttonOdeslat.Location = new System.Drawing.Point(153, 398);
this.buttonOdeslat.Name = "buttonOdeslat";
this.buttonOdeslat.Size = new System.Drawing.Size(75, 23);
this.buttonOdeslat.TabIndex = 3;
this.buttonOdeslat.Text = "ODESLAT";
this.buttonOdeslat.UseVisualStyleBackColor = true;
this.buttonOdeslat.Click += new System.EventHandler(this.buttonOdeslat_Click);
this.groupBox1.Controls.Add((System.Windows.Forms.Control)this.kvaSupA);
this.groupBox1.Controls.Add((System.Windows.Forms.Control)this.supSupervizeA);
this.groupBox1.Controls.Add((System.Windows.Forms.Control)this.finSuperA);
this.groupBox1.Controls.Add((System.Windows.Forms.Control)this.VyrobaSupervizeA);
this.groupBox1.Controls.Add((System.Windows.Forms.Control)this.AlabelKvalita);
this.groupBox1.Controls.Add((System.Windows.Forms.Control)this.AlabelSupply);
this.groupBox1.Controls.Add((System.Windows.Forms.Control)this.AlabelFinPer);
this.groupBox1.Controls.Add((System.Windows.Forms.Control)this.AlabelVyroba);
this.groupBox1.Font = new System.Drawing.Font("Microsoft Sans Serif", 9.75f, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, (byte)238);
this.groupBox1.Location = new System.Drawing.Point(13, 465);
this.groupBox1.Name = "groupBox1";
this.groupBox1.Size = new System.Drawing.Size(200, 115);
this.groupBox1.TabIndex = 4;
this.groupBox1.TabStop = false;
this.groupBox1.Text = "Tým A";
this.kvaSupA.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25f, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, (byte)238);
this.kvaSupA.Location = new System.Drawing.Point(140, 84);
this.kvaSupA.Name = "kvaSupA";
this.kvaSupA.Size = new System.Drawing.Size(48, 21);
this.kvaSupA.TabIndex = 13;
this.kvaSupA.Text = "zobraz";
this.kvaSupA.UseVisualStyleBackColor = true;
this.kvaSupA.Click += new System.EventHandler(this.kvaSupA_Click);
this.supSupervizeA.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25f, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, (byte)238);
this.supSupervizeA.Location = new System.Drawing.Point(140, 61);
this.supSupervizeA.Name = "supSupervizeA";
this.supSupervizeA.Size = new System.Drawing.Size(48, 21);
this.supSupervizeA.TabIndex = 14;
this.supSupervizeA.Text = "zobraz";
this.supSupervizeA.UseVisualStyleBackColor = true;
this.supSupervizeA.Click += new System.EventHandler(this.supSupervizeA_Click);
this.finSuperA.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25f, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, (byte)238);
this.finSuperA.Location = new System.Drawing.Point(140, 36);
this.finSuperA.Name = "finSuperA";
this.finSuperA.Size = new System.Drawing.Size(48, 21);
this.finSuperA.TabIndex = 13;
this.finSuperA.Text = "zobraz";
this.finSuperA.UseVisualStyleBackColor = true;
this.finSuperA.Click += new System.EventHandler(this.finSuperA_Click);
this.VyrobaSupervizeA.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25f, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, (byte)238);
this.VyrobaSupervizeA.Location = new System.Drawing.Point(140, 12);
this.VyrobaSupervizeA.Name = "VyrobaSupervizeA";
this.VyrobaSupervizeA.Size = new System.Drawing.Size(48, 21);
this.VyrobaSupervizeA.TabIndex = 4;
this.VyrobaSupervizeA.Text = "zobraz";
this.VyrobaSupervizeA.UseVisualStyleBackColor = true;
this.VyrobaSupervizeA.Click += new System.EventHandler(this.VyrobaSupervizeA_Click);
this.AlabelKvalita.AutoSize = true;
this.AlabelKvalita.Font = new System.Drawing.Font("Microsoft Sans Serif", 9f, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, (byte)238);
this.AlabelKvalita.Location = new System.Drawing.Point(6, 86);
this.AlabelKvalita.Name = "AlabelKvalita";
this.AlabelKvalita.Size = new System.Drawing.Size(88, 15);
this.AlabelKvalita.TabIndex = 3;
this.AlabelKvalita.Text = "Kvalita a BOZP";
this.AlabelSupply.AutoSize = true;
this.AlabelSupply.Font = new System.Drawing.Font("Microsoft Sans Serif", 9f, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, (byte)238);
this.AlabelSupply.Location = new System.Drawing.Point(6, 64);
this.AlabelSupply.Name = "AlabelSupply";
this.AlabelSupply.Size = new System.Drawing.Size(79, 15);
this.AlabelSupply.TabIndex = 2;
this.AlabelSupply.Text = "Supply Chain";
this.AlabelFinPer.AutoSize = true;
this.AlabelFinPer.Font = new System.Drawing.Font("Microsoft Sans Serif", 9f, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, (byte)238);
this.AlabelFinPer.Location = new System.Drawing.Point(6, 42);
this.AlabelFinPer.Name = "AlabelFinPer";
this.AlabelFinPer.Size = new System.Drawing.Size(128, 15);
this.AlabelFinPer.TabIndex = 1;
this.AlabelFinPer.Text = "Finanční a personální ";
this.AlabelVyroba.AutoSize = true;
this.AlabelVyroba.Font = new System.Drawing.Font("Microsoft Sans Serif", 9f, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, (byte)238);
this.AlabelVyroba.Location = new System.Drawing.Point(6, 18);
this.AlabelVyroba.Name = "AlabelVyroba";
this.AlabelVyroba.Size = new System.Drawing.Size(44, 15);
this.AlabelVyroba.TabIndex = 0;
this.AlabelVyroba.Text = "Výroba";
this.groupBox2.Controls.Add((System.Windows.Forms.Control)this.kvalitaSupervizreB);
this.groupBox2.Controls.Add((System.Windows.Forms.Control)this.supchainSupervizeB);
this.groupBox2.Controls.Add((System.Windows.Forms.Control)this.finSupervizeB);
this.groupBox2.Controls.Add((System.Windows.Forms.Control)this.vyrobaSupervizeB);
this.groupBox2.Controls.Add((System.Windows.Forms.Control)this.BlabelKvalita);
this.groupBox2.Controls.Add((System.Windows.Forms.Control)this.BlabelSupply);
this.groupBox2.Controls.Add((System.Windows.Forms.Control)this.BlabelFinPer);
this.groupBox2.Controls.Add((System.Windows.Forms.Control)this.BlabelVyroba);
this.groupBox2.Font = new System.Drawing.Font("Microsoft Sans Serif", 9.75f, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, (byte)238);
this.groupBox2.Location = new System.Drawing.Point(221, 465);
this.groupBox2.Name = "groupBox2";
this.groupBox2.Size = new System.Drawing.Size(200, 115);
this.groupBox2.TabIndex = 5;
this.groupBox2.TabStop = false;
this.groupBox2.Text = "Tým B";
this.kvalitaSupervizreB.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25f, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, (byte)238);
this.kvalitaSupervizreB.Location = new System.Drawing.Point(146, 84);
this.kvalitaSupervizreB.Name = "kvalitaSupervizreB";
this.kvalitaSupervizreB.Size = new System.Drawing.Size(48, 21);
this.kvalitaSupervizreB.TabIndex = 16;
this.kvalitaSupervizreB.Text = "zobraz";
this.kvalitaSupervizreB.UseVisualStyleBackColor = true;
this.kvalitaSupervizreB.Click += new System.EventHandler(this.kvalitaSupervizreB_Click);
this.supchainSupervizeB.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25f, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, (byte)238);
this.supchainSupervizeB.Location = new System.Drawing.Point(146, 61);
this.supchainSupervizeB.Name = "supchainSupervizeB";
this.supchainSupervizeB.Size = new System.Drawing.Size(48, 21);
this.supchainSupervizeB.TabIndex = 18;
this.supchainSupervizeB.Text = "zobraz";
this.supchainSupervizeB.UseVisualStyleBackColor = true;
this.supchainSupervizeB.Click += new System.EventHandler(this.supchainSupervizeB_Click);
this.finSupervizeB.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25f, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, (byte)238);
this.finSupervizeB.Location = new System.Drawing.Point(146, 36);
this.finSupervizeB.Name = "finSupervizeB";
this.finSupervizeB.Size = new System.Drawing.Size(48, 21);
this.finSupervizeB.TabIndex = 17;
this.finSupervizeB.Text = "zobraz";
this.finSupervizeB.UseVisualStyleBackColor = true;
this.finSupervizeB.Click += new System.EventHandler(this.finSupervizeB_Click);
this.vyrobaSupervizeB.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25f, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, (byte)238);
this.vyrobaSupervizeB.Location = new System.Drawing.Point(146, 12);
this.vyrobaSupervizeB.Name = "vyrobaSupervizeB";
this.vyrobaSupervizeB.Size = new System.Drawing.Size(48, 21);
this.vyrobaSupervizeB.TabIndex = 15;
this.vyrobaSupervizeB.Text = "zobraz";
this.vyrobaSupervizeB.UseVisualStyleBackColor = true;
this.vyrobaSupervizeB.Click += new System.EventHandler(this.vyrobaSupervizeB_Click);
this.BlabelKvalita.AutoSize = true;
this.BlabelKvalita.Font = new System.Drawing.Font("Microsoft Sans Serif", 9f, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, (byte)238);
this.BlabelKvalita.Location = new System.Drawing.Point(6, 86);
this.BlabelKvalita.Name = "BlabelKvalita";
this.BlabelKvalita.Size = new System.Drawing.Size(88, 15);
this.BlabelKvalita.TabIndex = 3;
this.BlabelKvalita.Text = "Kvalita a BOZP";
this.BlabelSupply.AutoSize = true;
this.BlabelSupply.Font = new System.Drawing.Font("Microsoft Sans Serif", 9f, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, (byte)238);
this.BlabelSupply.Location = new System.Drawing.Point(6, 64);
this.BlabelSupply.Name = "BlabelSupply";
this.BlabelSupply.Size = new System.Drawing.Size(79, 15);
this.BlabelSupply.TabIndex = 2;
this.BlabelSupply.Text = "Supply Chain";
this.BlabelFinPer.AutoSize = true;
this.BlabelFinPer.Font = new System.Drawing.Font("Microsoft Sans Serif", 9f, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, (byte)238);
this.BlabelFinPer.Location = new System.Drawing.Point(6, 42);
this.BlabelFinPer.Name = "BlabelFinPer";
this.BlabelFinPer.Size = new System.Drawing.Size(125, 15);
this.BlabelFinPer.TabIndex = 1;
this.BlabelFinPer.Text = "Finanční a personální";
this.BlabelVyroba.AutoSize = true;
this.BlabelVyroba.Font = new System.Drawing.Font("Microsoft Sans Serif", 9f, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, (byte)238);
this.BlabelVyroba.Location = new System.Drawing.Point(6, 18);
this.BlabelVyroba.Name = "BlabelVyroba";
this.BlabelVyroba.Size = new System.Drawing.Size(44, 15);
this.BlabelVyroba.TabIndex = 0;
this.BlabelVyroba.Text = "Výroba";
this.groupBox4.Controls.Add((System.Windows.Forms.Control)this.label5);
this.groupBox4.Controls.Add((System.Windows.Forms.Control)this.textBoxPocetKol);
this.groupBox4.Controls.Add((System.Windows.Forms.Control)this.buttonVytvoreniHry);
this.groupBox4.Controls.Add((System.Windows.Forms.Control)this.buttonIniNacteni);
this.groupBox4.Font = new System.Drawing.Font("Microsoft Sans Serif", 9.75f, System.Drawing.FontStyle.Italic, System.Drawing.GraphicsUnit.Point, (byte)238);
this.groupBox4.Location = new System.Drawing.Point(722, 12);
this.groupBox4.Name = "groupBox4";
this.groupBox4.Size = new System.Drawing.Size(157, 126);
this.groupBox4.TabIndex = 17;
this.groupBox4.TabStop = false;
this.groupBox4.Text = "Vytvoření hry";
this.label5.AutoSize = true;
this.label5.Font = new System.Drawing.Font("Microsoft Sans Serif", 9f, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, (byte)238);
this.label5.Location = new System.Drawing.Point(6, 57);
this.label5.Name = "label5";
this.label5.Size = new System.Drawing.Size(70, 15);
this.label5.TabIndex = 15;
this.label5.Text = "Počet kol:";
this.textBoxPocetKol.Font = new System.Drawing.Font("Microsoft Sans Serif", 9f, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, (byte)238);
this.textBoxPocetKol.Location = new System.Drawing.Point(82, 54);
this.textBoxPocetKol.Name = "textBoxPocetKol";
this.textBoxPocetKol.Size = new System.Drawing.Size(38, 21);
this.textBoxPocetKol.TabIndex = 14;
this.buttonVytvoreniHry.Location = new System.Drawing.Point(76, 97);
this.buttonVytvoreniHry.Name = "buttonVytvoreniHry";
this.buttonVytvoreniHry.Size = new System.Drawing.Size(75, 23);
this.buttonVytvoreniHry.TabIndex = 13;
this.buttonVytvoreniHry.Text = "OK";
this.buttonVytvoreniHry.UseVisualStyleBackColor = true;
this.buttonVytvoreniHry.Click += new System.EventHandler(this.buttonVytvoreniHry_Click);
this.labelKolo.AutoSize = true;
this.labelKolo.Font = new System.Drawing.Font("Microsoft Sans Serif", 9f, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, (byte)238);
this.labelKolo.Location = new System.Drawing.Point(114, (int)sbyte.MaxValue);
this.labelKolo.Name = "labelKolo";
this.labelKolo.Size = new System.Drawing.Size(0, 15);
this.labelKolo.TabIndex = 18;
this.groupBox5.Controls.Add((System.Windows.Forms.Control)this.buttonUkonceniKola);
this.groupBox5.Controls.Add((System.Windows.Forms.Control)this.label4);
this.groupBox5.Controls.Add((System.Windows.Forms.Control)this.labelKolo);
this.groupBox5.Controls.Add((System.Windows.Forms.Control)this.labelCas);
this.groupBox5.Controls.Add((System.Windows.Forms.Control)this.label2);
this.groupBox5.Controls.Add((System.Windows.Forms.Control)this.textBoxPocetPozVy);
this.groupBox5.Controls.Add((System.Windows.Forms.Control)this.buttonStart);
this.groupBox5.Controls.Add((System.Windows.Forms.Control)this.textBoxRozpocet);
this.groupBox5.Controls.Add((System.Windows.Forms.Control)this.label3);
this.groupBox5.Controls.Add((System.Windows.Forms.Control)this.textBoxDelkaKola);
this.groupBox5.Controls.Add((System.Windows.Forms.Control)this.label1);
this.groupBox5.Font = new System.Drawing.Font("Microsoft Sans Serif", 9.75f, System.Drawing.FontStyle.Italic, System.Drawing.GraphicsUnit.Point, (byte)238);
this.groupBox5.Location = new System.Drawing.Point(641, 150);
this.groupBox5.Name = "groupBox5";
this.groupBox5.Size = new System.Drawing.Size(333, 204);
this.groupBox5.TabIndex = 19;
this.groupBox5.TabStop = false;
this.groupBox5.Text = "Vytváření jednotlivých kol";
this.buttonVyhodnoceni.Location = new System.Drawing.Point(854, 361);
this.buttonVyhodnoceni.Name = "buttonVyhodnoceni";
this.buttonVyhodnoceni.Size = new System.Drawing.Size(120, 23);
this.buttonVyhodnoceni.TabIndex = 20;
this.buttonVyhodnoceni.Text = "Vyhodnocení hry";
this.buttonVyhodnoceni.UseVisualStyleBackColor = true;
this.buttonVyhodnoceni.Click += new System.EventHandler(this.buttonVyhodnoceni_Click);
this.buttonUkonceniKola.Location = new System.Drawing.Point(182, (int)sbyte.MaxValue);
this.buttonUkonceniKola.Name = "buttonUkonceniKola";
this.buttonUkonceniKola.Size = new System.Drawing.Size(133, 23);
this.buttonUkonceniKola.TabIndex = 19;
this.buttonUkonceniKola.Text = "Ukončit akt. kolo";
this.buttonUkonceniKola.UseVisualStyleBackColor = true;
this.buttonUkonceniKola.Click += new System.EventHandler(this.buttonUkonceniKola_Click);
this.AutoScaleDimensions = new System.Drawing.SizeF(6f, 13f);
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
this.ClientSize = new System.Drawing.Size(1008, 729);
this.Controls.Add((System.Windows.Forms.Control)this.buttonVyhodnoceni);
this.Controls.Add((System.Windows.Forms.Control)this.groupBox5);
this.Controls.Add((System.Windows.Forms.Control)this.groupBox4);
this.Controls.Add((System.Windows.Forms.Control)this.groupBox3);
this.Controls.Add((System.Windows.Forms.Control)this.groupBox2);
this.Controls.Add((System.Windows.Forms.Control)this.groupBox1);
this.Controls.Add((System.Windows.Forms.Control)this.buttonOdeslat);
this.Controls.Add((System.Windows.Forms.Control)this.comboBox);
this.Controls.Add((System.Windows.Forms.Control)this.textBox);
this.Controls.Add((System.Windows.Forms.Control)this.ChatBox);
this.Name = nameof(Lektor);
this.Text = nameof(Lektor);
this.FormClosing += new System.Windows.Forms.FormClosingEventHandler(this.Lektor_FormClosing);
this.Load += new System.EventHandler(this.Lektor_Load);
this.groupBox1.ResumeLayout(false);
this.groupBox1.PerformLayout();
this.groupBox2.ResumeLayout(false);
this.groupBox2.PerformLayout();
this.groupBox3.ResumeLayout(false);
this.groupBox3.PerformLayout();
this.groupBox4.ResumeLayout(false);
this.groupBox4.PerformLayout();
this.groupBox5.ResumeLayout(false);
this.groupBox5.PerformLayout();
this.ResumeLayout(false);
this.PerformLayout();
}
}
}
编辑:问题出在这些行上this.Name = nameof(Lektor);this.Text = nameof(Lektor);
当我删除它们时,问题就消失了。
最佳答案
这样试试
之前
this.Name = nameof(Lektor);
this.Text = nameof(Lektor);
改变了
this.Name = "Lektor";
this.Text = "Lektor";
关于c# - 无效的符号种类 : NamedType,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/52058717/
给定一个字符串,例如 s="##$$$#",我如何找到索引之前的“#”符号数等于“”数的索引$"符号在索引之后? 示例:如果 s="##$$$#",则输出将为 2。 解释:在索引 2 之前我们有 2
在本教程中,您将借助示例了解 JavaScript 符号。 JavaScript 符号 JavaScript ES6 引入了一种新的原始数据类型,称为 Symbol(符号)。符号是不可变的(不能更改)
在“函数编程的工艺”一书中,符号 '>.>' 将函数连接在一起,与 '.' 的方向相反。但是当我使用 ghci 实现它时,它显示了超出范围的错误 '>.>'。为什么?它是不再使用的旧符号吗? 最佳答案
很难说出这里问的是什么。这个问题是含糊的、模糊的、不完整的、过于宽泛的或修辞性的,无法以目前的形式得到合理的回答。如需帮助澄清此问题以便重新打开它,visit the help center 。 已关
我需要从向量中删除 \"。这是我的数据: data <- c("\"https://click.linksynergy.com/link?id=RUxZriH*PWc&offerid=323058.1
我在 Nginx 配置中使用正则表达式来捕获文件 URL,但如果文件 URL 包含 # 符号,正则表达式模式将不会捕获它。 这里是nginx的配置部分。 location ~ ^/p/(?[\w\-=
如何使 & 符号在此图表的第一组条形/列下正确显示: http://jsfiddle.net/VxbrK/2/ 应该是“Apples & Oranges”而不是“Apples & Oranges”。
**在verilog中是什么意思? 我为测试台提供了以下逻辑 localparam NUM_INPUT_BITS = 1; localparam NUM_OUTPUT_BITS
我有一个使用正则表达式来验证电子邮件地址的方法。 public String searchFormail(String searchWord) { Pattern pattern = Patt
我想将一个字符串拆分为数字部分和文本/符号部分我当前的代码不包含负数或小数,并且表现得很奇怪,在输出的末尾添加了一个空列表元素 import re mystring = 'AD%5(6ag 0.33-
我有一些代码需要从数组中选择一个随机字符串,但它一直返回单个字母或数字。如何解决这个问题? var name = ["Yayek", "Vozarut", "Gezex",
我刚开始使用 Python,我在考虑应该使用哪种表示法。我读过 PEP 8关于 Python 符号的指南,我同意那里的大多数内容,除了函数名称(我更喜欢混合大小写风格)。 在 C++ 中,我使用匈牙利
在用 C# 编写代码时,我错误地在 if 语句中的变量前添加了一个符号(而不是感叹号)。 bool b = false; if (@b) { } 我很惊讶它编译成功,没有任何错误。 我想知道:上面的代
本文实例为大家分享了特殊字符替换电话号码中某一部分的方法,ios利用-号替换电话号码中间四位,供大家参考,具体内容如下 1、效果图 2、代码 rootviewcontroll
当我使用“x”和“z”作为符号时,这段代码没有问题: from sympy import * x, z = symbols('x z') y = -6*x**2 + 2*x*z**0.5 + 50*x
我需要从文本中删除标点符号: data <- "Type the command AT&W enter. in order to save the new protocol on modem;"
我有几个数字是 numeric 类。下面的例子。 df = c(12974,12412,124124,124124,34543,4576547,32235) 现在我想在每个数字前添加 '$' 符号而不
我有一个 highcharts 图例,其中符号以不同的大小显示,因为它们在实际图表中的大小不同。不幸的是,当数据点的大小增加时,它们也会在图例中增加。无论数据点大小如何,我都希望图例符号保持相同的大小
我需要使用包含平均值+-SD的标题。到目前为止,我只能得到以下信息: "Mean +- SD or N (%)" [1] "Mean +- SD or N (%)" 如何直接使用“+-”符号?您知道一
使用 XSLT 和 XPath 1.0,我有一个要转义的字符串以用于 URL,例如: one word & another 因此,描述元素的 text() 应该进行 URL 转义。 我该怎么做
我是一名优秀的程序员,十分优秀!