Sample Visual Basic
Code to delete a public key from a public keyring file.
Where Cryptocx is an instance of a Cryptocx Control.
''
'' Delete the public Key
''
Dim theResult As String
Dim Cryptocx As New EasyByte_Software.Cryptocxv7
Cryptocx.LicenseKey = "DEMO"
Cryptocx.KeyID = "somekey"
Cryptocx.KeyFolder = "c:\mykeyfolder"
'' Delete the Key
''
theResult = Cryptocx.PGPDeletePublicKey
'' See if the key was deleted ok
''
If theResult = "TRUE" Then
'' Ok, the key was deleted
Else
MsgBox theResult
End If
|