-----------------------------------------------------------

New Message on MumbaiUserGroup

-----------------------------------------------------------
From: saurabhdotnet
Message 6 in Discussion


Hi ! 

I have done in VB.NET too. But not the similar thing. Anyway I am giving you the 
solution for the 'Relative' Stuff.

Code :

Private Sub TreeView1_KeyUp(ByVal sender As Object, ByVal e As 
System.Windows.Forms.KeyEventArgs) Handles TreeView1.KeyUp

        If e.KeyCode = Keys.Space Then
            Dim ss
            ss = Split(TreeView1.SelectedNode.Text, ":")
            TextBox2.Text = ss(0)
            TextBox3.Text = ss(1)
            TextBox4.Text = ss(2)
            TextBox5.Text = ss(3)
            TextBox2.Select()
        ElseIf e.KeyCode = 187 Then

            ' Adds new node as a child node of the currently selected node.
            Dim ss
            ss = Split(TreeView1.SelectedNode.Text, ":")
            Dim newNode As TreeNode = New TreeNode(ss(0) + 
(TreeView1.SelectedNode.GetNodeCount(False) + 1).ToString + ":" + "attrName" + ":" + 
ss(1) + ":" + "val")
            TreeView1.SelectedNode.Nodes.Add(newNode)
        ElseIf e.KeyCode = 189 Then
            TreeView1.SelectedNode.Remove()
        End If
End Sub


Hope this helps you in providing a fair idea.

take care...


Regards,
Saurabh
Gujarat Kite Fest at www.gujaratkitefest.com  

-----------------------------------------------------------

To stop getting this e-mail, or change how often it arrives, go to your E-mail 
Settings.
http://groups.msn.com/MumbaiUserGroup/_emailsettings.msnw

Need help? If you've forgotten your password, please go to Passport Member Services.
http://groups.msn.com/_passportredir.msnw?ppmprop=help

For other questions or feedback, go to our Contact Us page.
http://groups.msn.com/contact

If you do not want to receive future e-mail from this MSN group, or if you received 
this message by mistake, please click the "Remove" link below. On the pre-addressed 
e-mail message that opens, simply click "Send". Your e-mail address will be deleted 
from this group's mailing list.
mailto:[EMAIL PROTECTED]

Reply via email to