The ULConnection object represents an UltraLite database connection. It provides methods to get database objects like tables to synchronize.
Use WithEvents when receiving synchronization progress
When synchronizing, the ULConnection object can also receive progress information. If you want to receive this information, you must declare your connection WithEvents. You can perform synchronization without declaring your connection WithEvents; however, your connection object does not receive notification of synchronization progress.
To declare a connection WithEvents, in a MobileVB form, use the following syntax:
Public WithEvents Connection As ULConnection
The addition of WithEvents makes receipt of synchronization progress information possible.