eXG2Host - FAQ
Exontrol.COM Software - Frequently Asked Questions - ExG2Host Component
The control's release notes can be found on our web site, looking for the Release Notes column in the control's main page. Click here for direct link.
The following VB sample displays a message box, before pressing the Delete key, and cancel the operation if user selects No or Cancel:
Private Sub G2Host1_HostEvent(ByVal EventID As EXG2HOSTLibCtl.HostEventEnum)
    If (EventID = exHostKeyDown) Then
        If (vbKeyDelete = CInt(G2Host1.HostEventParam(0))) Then
            If Not (MsgBox("Do you want to delete?", vbYesNoCancel) = vbYes) Then
                G2Host1.HostEventParam(0) = 0
            End If
        End If
    End If
End Sub
You can disable completely deletion by removing the exHostAllowDelete flag from the HostReadOnly property.
How-To Questions
General Questions
Copyright 1999-2018 Exontrol. All rights reserved.