Connecting Tech Pros Worldwide Help | Site Map

Help in Treeview

Anil
Guest
 
Posts: n/a
#1: Nov 16 '05
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.


Frans Bouma [C# MVP]
Guest
 
Posts: n/a
#2: Nov 16 '05

re: Help in Treeview


"Anil" <not@noreply.com> wrote in
news:eW36M3IIEHA.3444@TK2MSFTNGP10.phx.gbl:
[color=blue]
> 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.[/color]

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
Closed Thread


Similar C# / C Sharp bytes