Guest Damo85 Posted April 12, 2009 Posted April 12, 2009 (edited) Hey,i have 2 qustions if anybody is able to help.I am working on a personal project using Microsoft Visual Studio 2005 Professional. My code so is working fine it's a simple progam that gets data (i need that barlic advisor and such dont display,and i would like to make my own anyway) about my system from the registry and such.1) What i am lookg for is a simple code that will display vista product key ( DigitalProductId ) in text view in a textbox2) I also use a timer in my program that works good but i want to display the countdown usic a label or something. I have tried a few this but can't get the label to refresh the text it stays on 5000 ( 5 second timer )Timer CodeLabel1.Refresh()Label1.Text = Timer1.IntervalWhat am i missing?Please Help...Thanks Edited April 12, 2009 by Damo85
CoffeeFiend Posted April 12, 2009 Posted April 12, 2009 To read from the registry, use the RegistryKey class, which is documented here on MSDN, along with sample how-to code.As for decoding DigitalProductId's, there's a large number of programs and scripts who already do this. Find one, understand what it does, and then recreate that. It's actually quite simple.Timers? There's like 3 different timers. You're likely using System.Windows.Forms.Timer, which is documented here, again with working code and all.A mod will likely move this to the programming section shortly (where it belongs).
Guest Damo85 Posted April 12, 2009 Posted April 12, 2009 Thank you for the reply and sorry for posting in the wrong section, i am still getting used to the forum and all it topics and such. Thanks again.
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now