1
I have a TreeView
, with some settings items:
I would like to double click on one node
it opens a specific form, the event of double-clicking and open the form, is OK, the problem is how I distinguish a node
of the other?
Example, by double-clicking on Users he opens the screen Users, by double clicking on Permissions he opens the permissions screen.
Event DoubleClick
:
this.treeView1.NodeMouseDoubleClick +=
new System.Windows.Forms.TreeNodeMouseClickEventHandler(this.TreeView1_doubleClick);
Method I’m using to generate the doubleclick
:
private void TreeView1_doubleClick(Object sender, TreeNodeMouseClickEventArgs e)// clicar em usuarios
{
Manutencao_usuarios clickmu = new Manutencao_usuarios();
clickmu.ShowDialog();
}
Perfect, thank you very much
– Thomas Erich Pimentel