سلام
کدی که تو سی شارپ مینوشتم اینه :
[CSHARP]
for (int b = 0; b < treeView1.Nodes.Count; b++)
{
for (int n = 0; n < treeView1.Nodes[b].Nodes.Count; n++)
{
if (treeView1.Nodes[b].Nodes[n].Checked)
{
MessageBox.Show(treeView1.Nodes[b].Nodes[n].Text);
}
}
}
[/CSHARP]
حالا میخوام تو وی بی دات نت این کد رو بنویسم :
For i = 0 To treeView1.Nodes.Count - 1
For n = 0 to treeView1.Nodes[i].Nodes -1
Next
Next
Nodes ـه دومی Count نداره ! و این ارور رو میده :
Error1 : Type of 'n' cannot be inferred because the loop bounds and the step clause do not convert to the same type
Error2 : End of statement expected
ممنون