private void setDialog() { IntPtr ViewHdl = this.picViewer.Handle; IntPtr Msg1Hdl = this.txtAMsg.Handle; IntPtr Msg2Hdl = this.txtSMsg.Handle; IBiometricNET.P_CBM_DlgItem dlgCtrl = new IBiometricNET.P_CBM_DlgItem(); dlgCtrl.hwndViewer = ViewHdl; dlgCtrl.hSyncMsg = Msg1Hdl; dlgCtrl.hStatusMsg = Msg2Hdl; bool l_ret_value = IBNET.SetDialog(ref dlgCtrl); if (l_ret_value) { } else { MessageBox.Show("SetDialog Fail"); } }