Antonio,
Almost this! Because its shows all items that are checked and i wanna show just the item was checked in each moment.
I don`t know if I express myself well. So being more exactly:
The tree is there with all items, so i check "Imprimir..." and the function shows for me just "Imprimir..."
So i check "Definir Proyectos" and the function shows for me just "Definir Proyectos"
______________________________________
Antonio I`m reading the overview of TreeView classe at MSDN:
http://msdn.microsoft.com/pt-br/library ... view(VS.80).aspx
So I found this part that I think is what I`m looking for....
Setting the TreeNode.Checked property from within the
BeforeCheck or
AfterCheck event causes the event to be raised multiple times and can result in unexpected behavior.For example, you might set the Checked property in the event handler when you are recursively updating the child nodes, so the user does not have to expand and check each one individually.To prevent the event from being raised multiple times, add logic to your event handler that only executes your recursive code if the Action property of the TreeViewEventArgs is not set to TreeViewAction.Unknown.For an example of how to do this, see the Example section of the AfterCheck or BeforeCheck events.