On Node Change evente with a Treeview

  • Thread starter Thread starter Archives
  • Start date Start date
A

Archives

Hello,

When I use the following code "MyNode.selected=True", I would like that a
event occurs, telling me that the treeview has moved from a node to another
node.

What event should I use ?
 
Hi,


You don't need an event since you are in charge: type whatever your
"event" would do, immediately the line after.


Events are useful when you need asynchronous process (but VBA as a
single thread of execution), facultative process (when you raise an event,
there can be no one to catch it, as for most events under an Access FORM, by
opposition, if you use a call, the subroutine you call must be present), or
when you develop a class or a tool in a psirit to be re-used somewhere else.
If you are in your own program, you probably don't need to signal an event
to itself (remember that VBA has just one thread of execution).



Hoping it may help,
Vanderghast, Access MVP
 
Hello,

I have many modules which have line "MyNode.selected=True", so I would have
a On_Node_Change event instead to write code after each line.
 
Back
Top