|
-
Jul 16th, 2004, 10:04 AM
#1
Thread Starter
Member
-
Jul 16th, 2004, 05:15 PM
#2
Lively Member
Try this:
VB Code:
Private Sub TreeView_AfterLabelEdit(ByVal sender As Object, ByVal e As System.Windows.Forms.NodeLabelEditEventArgs) Handles TreeView.AfterLabelEdit
If e.Label = Nothing Or e.Label.IndexOfAny(New Char() {"@"c, "."c, ","c, "!"c}) <> -1 Then
e.CancelEdit = True
Exit Sub
End If
Dim Tn As TreeNode
For Each Tn In rf.Nodes
If Tn.Text = e.Label Then
e.CancelEdit = True
Exit For
End If
Next
End Sub
Do you think my life is easy?
Do you think it's good to win?
do you think it's nice to kill?
Do you think learning is a must?
Do you think computers are nothing?
Do you think this post is stupid?
Do ypu think we're really humen?
DO YOU THINK IT'S GOOD TO THINK AT ALL? ? ? ! ! !
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|