ZKemKeeper: Events not triggering
<p>I am building a C# windows application to get thumb impression and display it on the form. I have been successful in connecting the application to the Scanner (ZKTeco TX628). However, events are not triggering.</p>

<p>Here is my code: -</p>

<pre><code>    ZKFPEngX fp = new ZKFPEngX();
    zkemkeeper.CZKEMClass axCZKEM1 = new zkemkeeper.CZKEMClass();
    bool bIsConnected = false;

    public Form2()
    {
        InitializeComponent();
    }

    private void button1_Click(object sender, EventArgs e)
    {   
        bIsConnected = axCZKEM1.Connect_Net("192.168.1.201", Convert.ToInt32(4370));

        if (bIsConnected == true)
        {
            if (axCZKEM1.RegEvent(1, 65536))
            {
                this.axCZKEM1.OnFinger += new zkemkeeper._IZKEMEvents_OnFingerEventHandler(axCZKEM1_OnFinger);
                this.axCZKEM1.OnConnected += new _IZKEMEvents_OnConnectedEventHandler(axCZKEM1_OnConnected);
                this.axCZKEM1.OnVerify += new zkemkeeper._IZKEMEvents_OnVerifyEventHandler(axCZKEM1_OnVerify);
            }
        }
        else
        {
            int idwErrorCode=-1;
            this.axCZKEM1.GetLastError(ref idwErrorCode);
            MessageBox.Show("Unable to connect the device,ErrorCode=" + idwErrorCode.ToString(), "Error");
        }
    }

    private void axCZKEM1_OnFinger()
    {
        label1.Text = "OK";
        byte[] TmpData = new byte[700];
        int with = 0;
        int lenth = 0;
        bool fulimage = false;
        string path = "";
        byte a=1;
        axCZKEM1.CaptureImage(fulimage, ref with, ref lenth, ref a, path);
        MessageBox.Show ("RTEvent OnFinger Has been Triggered");
    }

    private void axCZKEM1_OnVerify(int uid)
    {
        label1.Text = "Verified";
    }

    private void axCZKEM1_OnConnected()
    {
        label1.Text = "Connected";
    }

    private void button2_Click(object sender, EventArgs e)
    {
        this.axCZKEM1.EnableDevice(1, true);

        this.axCZKEM1.Disconnect();
        label1.Text = "Disconnected";
    }
</code></pre>