
Originally Posted by
jmcilhinney
Presumably you are performing a String comparison in that 'selectTreeNode' method so you need to make that comparison case-insensitive. You don't need us to tell you how to do that because you can find out in a matter of seconds by searching the web with the appropriate keywords, e.g. "vb.net case insensitive comparison".
thanks for edvice but I couldnt find a solution. but same problem here
Code:
Private Sub Button13_Click(sender As Object, e As EventArgs) Handles Button13.Click
For Each n As TreeNode In Me.TreeView1.Nodes(0).Nodes
If n.Text = "Users" Then
TreeView1.SelectedNode = n
TreeView1.Select()
TreeView1.SelectedNode.Expand()
End If
Next
End Sub
When Type "Users" 'With Capital "U"
TreeView.SelectedNode is Focus On "C:\Users"
But When I type "users" with "u"
this time result is nothing.
is the problem about TreeView or about the Code ?