

And once a mask range is filled, for example the mask allows 4 characters and then displays a hyphen and 4 Mask you provide so when the user goes to enter a key they enter the characters as displayed in the key and not the hyphens displayed in the key. You can remove the hyphens from the string and place hyphens wherever you want so that the hyphens appear as the separators in a And I suppose you would have trial and full version keys in the database and none should ever be the same as a returned result from Guid.NewGuidĪnd the sub string you get so you will need to discard returned results that are already in the database for both trial and full version keys so no keys are compromised by having the same values.

Guid.NewGuid Method () which returns including hyphens 36 characters or without hyphens 32 characters as there are 4 hyphens returned in each conversion to string of a Guid.NewGuid.Īs this "0f8fad5b-d9cb-469f-a165-70867728950e" is a full example of one.Īnd then you will need to save all to a database as well compare that a returned result is not already in the database. You should be researching the net about such issues which probably will take some time for you to become clear on how to proceed.

It is entirely a separate issue on how to setup your app and systems necessary for your app to run from trial or full version key and know or be advised somehow that it is using a trial or full version key.Īs well it is a separate issue on how your app will run on either on only a single PC for either a single or all users of that PC and then not run on a different PC if copied to one using the same keys it uses on the original PC it was installed on.
