0
I am developing a new application but I have a final problem to solve and I have tried googlear and nothing I can not find any example.
in fact I want to delete the item in treeview that was selected
I tried so but give me a mistake
Error 1 'System.Windows.Forms.Treeview' does not contain a Definition for 'Items' and no Extension method 'Items' Accepting a first argument of type 'System.Windows.Forms.Treeview' could be found (are you Missing a using Directive or an Assembly Reference?)
I tried so :
listMessages.Items.Remove(listMessages.SelectedItem);
Why do you have to wear
Nodes
instead ofItems
?– Francisco
Because
Items
doesn’t exist, @Francisco– Jéf Bueno