is there a way how to make the program to have ask for a activation b4 running it?
Select ur Project property and set Startup Object to Sub Main
Create a Module, and place the code like this
-
Sub Main() 'this sub will be load before all form to be loaded
-
If checkForActivation() = True Then 'if the program was activated
-
Load frmMain
-
frmMain.Show
-
Else
-
frmActivation.Show
-
End If
-
End Sub
-
Private Function checkForActivation() As Boolean
-
'u check the activation here
-
End Function
-
u can save the activation infomation into Registry ( this method have least secrete) or into file. If u saved into file, remember using not common file name and extension. Remember encode the infomation also.
Activation will be checked by loading data from Registry or Files. Calculate anything that u want to ensure that the correct infomation.
If u want encode ur data, search for Encode engine from other site. I already have some encode engine but maybe its not the bets.