Link to home
Start Free TrialLog in
Avatar of SRO_TSG
SRO_TSG

asked on

How do I Programmatically invoke NodeMouseClick event?

Hello,
     We are using a TreeView control. We would like to programmatically invoke the NodeMouseClick event, is this possible and how? We were looking for something like performClick() like Buttons have.

Thank You!
Avatar of UnifiedIS
UnifiedIS

In that type of situation, I like to move my NodeMouseClick code to a separate method and call it from the click event or from somewhere else in code
Avatar of SRO_TSG

ASKER

Thank you for your suggestion and that does get us to half way solving our issue.  We are doing Test Driven Development (aka Unit Testing) and pulling out the code for the NodeMouseClick to call makes the result of a click testable. What it does not accomplish is the ability to test that the correct  Event Handler got attached to a the NodeMouseClick event.  To test this we would like to invoke the event in our Unit test.
Not sure, sorry
ASKER CERTIFIED SOLUTION
Avatar of almander
almander

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial