我是一个学习C#的VB人。我似乎已经掌握了它,但我正在写一些关于我正在编写的代码的问题。C#关于从VB重写的问题
在这里的第一个当我写我的代码一样,所以我得到一个错误:
Irowindex = sF1411BindingSource.Find(sF1411DataSet.SF1411.Columns(groupBox4.Tag.ToString).ToString, textBox1.Text);
if (Irowindex == -1)
错误1“System.Data.DataTable.Columns”是“属性”,但使用像一个 '方法' C:\ 11180_APPLICATION \ 11180_APPLICATION \ Edit.cs 186 71 11180_APPLICATION
我的另一个问题是,在VB我使用的标签,但在C#中它似乎没有像他们一样:
//Set the find label to display the new find column
groupBox4.Text = "Find - " + sender.Tag.ToString + ":";
//Store the sort column name in lblFind's Tag property
groupBox4.Tag = sender.Tag.ToString;
错误4 '对象' 不包含 '标签' C的定义:\ 11180_APPLICATION \ 11180_APPLICATION \ Edit.cs 211 36 11180_APPLICATION
任何想法吗?
谢谢!现在只有一个错误,Irowindex = sF1411BindingSource.Find [(sF1411DataSet.SF1411.Columns [“QuoteNumber”]。ToString)textBox1.Text; if(Irowindex == -1)错误是:错误语法错误,']'预计\t - 其中我有textBox1.text在。 – GabrielVa 2010-09-28 13:11:22