[求助]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/06/25 16:19:18
![[求助]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](/uploads/image/z/7907039-71-9.jpg?t=%5B%E6%B1%82%E5%8A%A9%5DC%23%E4%B8%AD%E5%87%BA%E7%8E%B0The+name+%27%2A%2A%2A+%27+does+not+exist+in+the+current+context%7Ec%23%E4%B8%ADwindowsForms+application%E4%B8%AD%E5%87%BA%E7%8E%B0error%EF%BC%9AThe+name+%27%2A%2A%2A+%27+does+not+exist+in+the+current+context%7E%E6%AF%94%E5%A6%82%EF%BC%9AThe+name+%27InitializeComponent%27+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试过了 没问题啊