I'm working on a VB.NET to C# conversion and I'm currently stuck with a TreeView
object.
Dim Arguments1 As String = path & "\" & fs & " ls " & TreeView1.Nodes(ccc).Name
So far, I can only get to this:
string Arguments1 = path + "\\" + fs + " ls " + ?
IN VB.NET, TreeView
has a method, Nodes(int)
, which I can get the Name
property from. However, C# doesn't have a Nodes(int)
method. I think it might be TreeView1.Items[ccc]
, but TreeView1.Items[ccc].Name
doesn't compile because the object Items[int]
returns doesn't contains a Name
property. How do I get it?