I have another question. In my application, I have a button, a text box and TreeView Control where I will create a tree view list. With the button control I can successfully add a node to the Tree View Control. The contents of that node is what is entered in TextBox1. In addition to being able to using a button to add the node to the Tree View Control, I want to be able to just hit the "Enter" button and have it activate btnLevelOne. I am trying to do this using the Enter Event but it seems to have no affect. My code is below. Can you tell me where I am going wrong?
Public Class CreateIndex
'Create a Root Level Node
Private Sub btnLevelOne_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnLevelOne.Click
Dim NewNodes As String
NewNodes = TextBox1.Text
Private Sub TextBox1_Enter(ByVal sender As Object, ByVal e As System.EventArgs) Handles TextBox1.Enter