Wrox Programmer Forums
.NET Framework 2.0 For discussion of the Microsoft .NET Framework 2.0.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the .NET Framework 2.0 section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
Old April 26th, 2007, 04:34 AM
Registered User
Join Date: Mar 2006
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via AIM to selorm
Default Writing trial programs

I would like my program to write values to a computer registry when it is installed so that the program can run for only a certain number of days. How can i do this? If there is any other way to do write a program so that it works as a trial version, I wouldn't mind using that one as well, provided it works well.
Old May 4th, 2007, 06:43 AM
Authorized User
Join Date: Dec 2004
Posts: 68
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to DZukiewicz

You can access the registry through the Registry class.

There is
Registry.LocalMachine (shared)
Registry.CurrentUser (current user)

Then you use the .OpenSubKey( keyname ) and eventually .GetValue() to get the data, which needs casting to the appropriate type.



Similar Threads
Thread Thread Starter Forum Replies Last Post
install VS 2008 Trial errors mikealdrich Visual Web Developer 2008 1 December 23rd, 2008 12:03 PM
CREATE TRIAL BASE Vision G Access VBA 2 April 16th, 2008 09:38 AM
Free jsp chart component(not trial) jetbrains JSP Basics 0 March 24th, 2006 01:09 AM
Help me run my programs Huma Naqvi General .NET 8 September 6th, 2004 01:32 AM
EXE Programs zhenwe1 Servlets 1 December 1st, 2003 10:29 AM

Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.