I am developing a new application but I have a final problem to solve and I tried googlear and nothing I can not find any examples.
In fact I want to delete the item in the treeview that has been sealed
I tried this way but gave 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 this way:
listMessages.Items.Remove(listMessages.SelectedItem);