Always Activated

Hi,

It seems that I am having a small moment when trying to use VB Net.

On a Windows Form I have a De-Activate & Activate Button.

De-Activate = TurboActivate.Deactivate(False)

For some reason whatever text / serial I enter into a textbox the product is always Activated ?

I'm sure it's me but can anyone help.

De-Activate = TurboActivate.Deactivate(False)

Activate Button Code

Dim Activatecode As String

Activatecode = TextBox4.Text

TurboActivate.CheckAndSavePKey(Activatecode)

TurboActivate.Activate()

If TurboActivate.IsActivated = True Then TextBox2.Text = "Product Code Activated" End If

If TurboActivate.IsActivated = False Then TextBox2.Text = "Product not Activated" End If

What's the return code from CheckAndSavePkey()?

TurboActivate.CheckAndSavePKey(Activatecode)

Also, when you're calling TurboActivate.Deactivate(False), you're keeping the old product key around. If you want to remove the product key (to let the user enter something else) then call Deactivate(True).

Hi,

If I do a MsgBox(TurboActivate.GetPKey) after the

Activatecode = TextBox4.Text TurboActivate.CheckAndSavePKey(Activatecode)

it displays the original code and not what's entered into the text-box.

regards

Kim

Like I said, remove the product key before entering a new one.

Thank you. That worked