0

I have a little doubt, how can i simulate the TreeView NodeMouseClick Event from any button ?

I tried this:

TRV_Lista_NodeMouseClick(sender, (TreeNodeMouseClickEventArgs) e);

But doesn't work. Any idea ? Thanks in advance!

EDIT:

Finally i got it. calling TRV_Lista_NodeMouseClick(sender, null) and controlling in the method if (e != null).

Gray
  • 7,050
  • 2
  • 29
  • 52
SamYan
  • 1,553
  • 1
  • 19
  • 38
  • That's not possible. Why is this necessary? If you already have a NodeMouseClick event handler then just call it. If you don't then there's no point in "simulating" it, just select the node. – Hans Passant Jun 09 '13 at 20:40
  • I cant call the nodeMouseClick event handler, bacause i need to pass parameters (sender, e). Do you understand me ? – SamYan Jun 09 '13 at 21:08

0 Answers0