Click here to Skip to main content
15,920,005 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
hiii,
i design a form it named FrmFirst,
i wrote a class it named Spider,in this class i define a variable:
string[] list = new string[100];
how i can send information of list to form???
Posted

make the object of class like


Spider sp=new Spider();
datatable dt=new datatable();
dt.columns.add("ListData");
for(int i=0;i<sp.list;i++)>
{
DataRow row =dt.NewRow();
row["ListData"]=sp.list[i].ToString();
dt.Rows.Add(row);
}
 
Share this answer
 
Comments
Member 8453437 13-Sep-13 5:39am    
sp.list not recognize????list is not exist in FrmFirst??
how i must define List variable???
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900