[求助]C#中出现The name '*** ' does not exist in the current context~c#中windowsForms application中出现error:The name '*** ' does not exist in the current context~比如:The name 'InitializeComponent' does not exist in the current context

来源:学生作业帮助网 编辑:作业帮 时间:2024/05/12 00:23:25
[求助]C#中出现The name '*** ' does not exist in the current context~c#中windowsForms application中出现error:The name '*** ' does not exist in the current context~比如:The name 'InitializeComponent' does not exist in the current context

[求助]C#中出现The name '*** ' does not exist in the current context~c#中windowsForms application中出现error:The name '*** ' does not exist in the current context~比如:The name 'InitializeComponent' does not exist in the current context
[求助]C#中出现The name '*** ' does not exist in the current context~
c#中windowsForms application中出现error:The name '*** ' does not exist in the current context~
比如:The name 'InitializeComponent' does not exist in the current context;
但是我在form.designer.cs中定义过InitializeComponent了~
哪位大虾帮忙看看这是什么原因,该怎么解决丫~
ps:我用的是vs2010~

[求助]C#中出现The name '*** ' does not exist in the current context~c#中windowsForms application中出现error:The name '*** ' does not exist in the current context~比如:The name 'InitializeComponent' does not exist in the current context
The name 'InitializeComponent' does not exist in the current context;是指一种语法错误.在程序的某处可能定义了InitializeComponent,但是它不在当前作用域内.你看看自己的程序InitializeComponent在不在当前作用域内

应该不是什么大问题,只要编写的时候注意单词的大小写。。还有你的修改要全部保存了再运行一下试试。

InitializeComponent是自动生成的!
但是你会不会是二次重载了??

还是看一下名字对不对吧,我在vs2010试过了 没问题啊