2.7.5 Handling of client sync in multi client environment

 The following code show a simple sample in VB .NET.:

    Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
        ComInterface = New ehmInterface.XML
        ComInterface.ConnectionString = msConnectionString
        ComInterface.EnableSyncEvent()
        Button2.Enabled = True
    End Sub

    Private Sub ComInterface_MultiClientSyncReady(ByRef ClientId As String) Handles ComInterface.MultiClientSyncReady
        ListBox1.Items.Add("Event from " & ClientId)
    End Sub

    Private Sub Button2_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button2.Click
        ComInterface.DiableSyncEvent()
    End Sub