• Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint
Share this Page URL
Help

Chapter 18. Event Handling in the Visio ... > WithEvents Keyword in Visio Automati...

WithEvents Keyword in Visio Automation

Let's return to Automation programming again. Now that you have seen how dependencies are established, you will want to use Automation interfaces to look for dependency triggers and take appropriate action based on that trigger.

You can define a class object to receive events. A class that receives events is sometimes called an event sink or a sink object. With the class definition, you can use the VBA keyword WithEvents to declare an object variable for the Visio object whose events you want to handle.


PREVIEW

                                                                          

Not a subscriber?

Start A Free Trial


  
  • Creative Edge
  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint