"Anil" <no*@noreply.com> wrote in
news:eW**************@TK2MSFTNGP10.phx.gbl:
I want to invoke LabelEdit event of TreeView/ListView(property set to
true) from another event what should I do?
The scenario is like windows explorer. If u click F2, selected node or
item will be editable. How to map that LabelEdit event with MenuClick
event. Please help me out.
Erm, you want to edit the node also from a menu or do you want to
switch on label editing in a treeview control?
As a person who has dealt with renaming labels in treeview controls:
I'd use a pop-up window with a textbox and an Ok-Cancel button combination.
It will save you a lot of trouble when you for example have validation logic
in place for the node name.
Frans.
--
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