我已经尝试了以下解决方案,但仍然给我同样的错误: 无法隐式地将类型“string”转换为“System.Windows.Forms.TextBox”
这是我的表单元素代码:
private void InitializeComponent()
{
this.Controls.Add(this.splitContainer1);
this.ImeMode = System.Windows.Forms.ImeMode.On;
this.Name = "UserForm"; // Here I have a problem while runing the application
this.Text = "User Log Management";
}
Run Code Online (Sandbox Code Playgroud)
我尝试更改表单的名称,但仍然不起作用。