[求助]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/10 00:32:44
[求助]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~
The name 'InitializeComponent' does not exist in the current context;是指一种语法错误.在程序的某处可能定义了InitializeComponent,但是它不在当前作用域内.你看看自己的程序InitializeComponent在不在当前作用域内
应该不是什么大问题,只要编写的时候注意单词的大小写。。还有你的修改要全部保存了再运行一下试试。
InitializeComponent是自动生成的!
但是你会不会是二次重载了??
还是看一下名字对不对吧,我在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
c# 中this[name]表示什么
c#中出现这个.这是怎么回事?
求助英语翻译enter the name as inlet,
C#中把一句英文句子:my name is a 变成:a is name my
C# 中
The name 'CheckExtension' does not exist in the current contextCheckExtension不是C#自带的函数么?
关于C#中get:和set;用法在类中定义属性public string name{get;set;}和private string name;public string Name{get { return name; }set { name= value; }}有什么区别.感觉都是封装字段.
c# address = name.Substring(name.IndexOf('', ' ');中的‘>’和'
C#窗体控件编程中TreeNode t = new TreeNode(folder.Name,2,1);这一句中TreeNode的参数2,
c#实现,统计一句英文句子中某个单词出现的次数.
c#中this.
C#中 是什么
c#中system.math.
c#中Clear是什么意思
C#中属性是什么意思
c#中dr是什么意思
C#中debug是什么意思