Private Sub TreeView1_NodeMouseClick(ByVal sender As System.Object, ByVal e As System.Windows.Forms.TreeNodeMouseClickEventArgs) Handles TreeView1.NodeMouseClick If e.Node.Name = "노드0" Then RichTextBox1.Text = " 선택해주세요 " End If
If e.Node.Name = "노드1" Then RichTextBox1.Visible = False End If
If e.Node.Name = "노드2" Then RichTextBox1.Visible = True End If
If e.Node.Name = "노드4" Then End End If End Sub End Class
Public Class Form1
Private Sub TreeView1_NodeMouseClick(ByVal sender As System.Object, ByVal e As System.Windows.Forms.TreeNodeMouseClickEventArgs) Handles TreeView1.NodeMouseClick
If e.Node.Name = "노드0" Then
RichTextBox1.Text = " 선택해주세요 "
End If
If e.Node.Name = "노드1" Then
RichTextBox1.Visible = False
End If
If e.Node.Name = "노드2" Then
RichTextBox1.Visible = True
End If
If e.Node.Name = "노드4" Then
End
End If
End Sub
End Class
이 댓글을