Samples If we use the Eventloggers callback methods to be notified about event state changes we need to make our application threadsafe. This will include defining some critical sections, using the lock directive on the one hand and access to the ListView on the other hand. Accessing Windows controls from different threads does not work in general. You can use delegate methods and the ListViews Invoke method for synchronization. See the complete project for a very basic implementation of the points mentioned above. This implementation does not deal with event confirmations. 10.5 Visual Basic 10.5.1 Integration of TcEventViewer ActiveX control 1. Create a new standard exe project 2.
Right-click on the Toolbox and choose 'Components...' 3. Add the TcEventViewer 4. The TcEventviewer is now in the Toolbox. Add it to the form. TcEventLogger 196 Version: 1.1 Language / IDE Source code Visual Studio 2005 https://infosys.beckhoff.com/content/1033/ TcEventLogger/Resources/12333058571/.zip Language / IDE Source code Visual Basic 6.0 Sample01.zip (in preparation)