mdshmdsh
شنبه 11 بهمن 1393, 14:18 عصر
دوستان کسی می تونه 3 قطعه کد زیر را به vb.net تبدیل کنه؟
Node.Index + 1.Nodes.Add("", "Node")
curIndex = Form1.Tree.Nodes(index).Child.index 'getting its childs index
For f = 1 To Form1.Tree.Nodes(index).Children ' for all children
PrintNode((curIndex)) 'call the above function
If f<>Form1.Tree.Nodes(index).Children Then curIndex = Form1.Tree.Nodes(curIndex)'Next. : index() ' if we are not at the last child then goto next child
Next
Node.Index + 1.Nodes.Add("", "Node")
curIndex = Form1.Tree.Nodes(index).Child.index 'getting its childs index
For f = 1 To Form1.Tree.Nodes(index).Children ' for all children
PrintNode((curIndex)) 'call the above function
If f<>Form1.Tree.Nodes(index).Children Then curIndex = Form1.Tree.Nodes(curIndex)'Next. : index() ' if we are not at the last child then goto next child
Next