Hello,

i have a problem the following code saves to the registery.

Code Code:
  1. Private Sub cmdRegister_Click()
  2. If Len(txtRegister.Text) > 25 Then
  3. If fnCheckRegistration(txtRegister.Text) = True Then
  4.     fnDoRegister "SOFTWARE\ProductRecovery\PRK", txtRegister.Text
  5.     frmMain.Show
  6.     Unload Me
  7. Else
  8.     frmMessage.Show vbModal
  9.     Registered = False
  10. End If
  11. Else
  12.     frmMessage.Show
  13. End If
  14. End Sub

i was woundering if anyone can tell me how to delete it from the registry by clicking a command button?.