On Node Change evente with a Treeview

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 ?
 
M

Michel Walsh

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
 
A

Archives

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.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top