470,636 Members | 1,365 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 470,636 developers. It's quick & easy.

Change Label at LabelEdit


I want to edit a TreeNode with LabelEdit. But i have to remove some
informations before editing the Label.

I have Nodes which have an counter included


Computer (20)

Now when a user start LabelEdit by double Click i want to remove


because the user shouldn't have to edit this ...

I tried to catch the BeforeLabelEdit Event with


e.Node.Text = Regex.Replace(e.Node.Text, @"\(\d+\)$", "");

but the user allways get

Computer (20)

to edit, instead only


Maybe someone has a idea how to solve this Problem

Thank you

Nov 16 '05 #1
0 1116

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

1 post views Thread by Michael C | last post: by
2 posts views Thread by Sjaakie Helderhorst | last post: by
6 posts views Thread by Roger Ries via DotNetMonster.com | last post: by
6 posts views Thread by AAaron123 | last post: by
1 post views Thread by Korara | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.