O'Reilly logo

Developing Microsoft® .NET Controls with Microsoft Visual Basic® .NET by John Connell

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Other Types of Control Licensing Schemes

Occasionally, a file containing a key won’t be sophisticated enough for a control. The .NET Framework has classes that permit you to perform different checks at design time and run time. You might add a key to the registry when a licensed control is installed and then check that key. Or you could create an encrypted file that contains a key. Another approach could be that when the control is installed, a routine builds an encrypted hidden file containing the installed machine’s hard drive ID (remember our coverage of Windows Management Instrumentation in Chapter 2?) and places it in \Windows\System32. The ID would be hashed using Base64 so all characters would be ASCII. Then your licensing scheme dynamically ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required