=?Utf-8?B?U2Ft?= <sh***********@corp.idt.net> wrote in
news:25**********************************@microsof t.com:
I'm having problem. I want to have a block of code run, after a user
edits the label of a node, so I put the code in the event method of the
afterLabelEdit event. The problem is that this code is called even
before the label is finished being edited - its being called as soon as
beginEdit is called. How can I have a block of code that is run only
after the user finished editing?
It's a pain. Best is to pop up a string input dialog which asks for
the new name and show that modal. You can then precisely say when the code
should run.
The reason it is a pain is because label editing is done by sending a
message to the underlying win32 treeview control. This isn't synchronized
very well with the synchronous behaviour of .NET.
FB
--
Get LLBLGen Pro, the new O/R mapper for .NET:
http://www.llblgen.com
My .NET Blog:
http://weblogs.asp.net/fbouma
Microsoft C# MVP