Click here to Skip to main content
15,889,335 members
Home / Discussions / C#
   

C#

 
SuggestionMessage Closed Pin
7-Oct-11 5:03
Catalin Stavaru7-Oct-11 5:03 
GeneralRe: How to create secure, uncrackable product keys for your application Pin
Albert Holguin7-Oct-11 5:06
professionalAlbert Holguin7-Oct-11 5:06 
GeneralRe: How to create secure, uncrackable product keys for your application Pin
BobJanova7-Oct-11 5:19
BobJanova7-Oct-11 5:19 
GeneralRe: How to create secure, uncrackable product keys for your application Pin
PIEBALDconsult7-Oct-11 5:29
mvePIEBALDconsult7-Oct-11 5:29 
GeneralRe: How to create secure, uncrackable product keys for your application Pin
harold aptroot7-Oct-11 5:43
harold aptroot7-Oct-11 5:43 
QuestionConvert Windows install date Pin
CCodeNewbie7-Oct-11 5:01
CCodeNewbie7-Oct-11 5:01 
AnswerRe: Convert Windows install date Pin
PIEBALDconsult7-Oct-11 5:26
mvePIEBALDconsult7-Oct-11 5:26 
GeneralRe: Convert Windows install date Pin
CCodeNewbie7-Oct-11 8:50
CCodeNewbie7-Oct-11 8:50 
Solved:

Get Windows install date and convert to human-readable format

C#
RegistryKey RegKeyIN = Registry.LocalMachine;
               RegKeyIN = RegKeyIN.OpenSubKey("SOFTWARE\\MICROSOFT\\WINDOWS NT\\CURRENTVERSION");
               Int32 t = Convert.ToInt32(RegKeyIN.GetValue("InstallDate"));
               System.DateTime dt = new System.DateTime(1970, 1, 1).AddSeconds(t);
                   {
                    Console.WriteLine("Install Date " + dt);
                   }


Hope this helps Smile | :)
QuestionIs there way to create a webpage in C# viewed somewhere else Pin
Klockness7-Oct-11 4:07
Klockness7-Oct-11 4:07 
AnswerRe: Is there way to create a webpage in C# viewed somewhere else Pin
Not Active7-Oct-11 4:28
mentorNot Active7-Oct-11 4:28 
AnswerRe: Is there way to create a webpage in C# viewed somewhere else Pin
BobJanova7-Oct-11 4:49
BobJanova7-Oct-11 4:49 
AnswerRe: Is there way to create a webpage in C# viewed somewhere else Pin
Luc Pattyn7-Oct-11 5:00
sitebuilderLuc Pattyn7-Oct-11 5:00 
AnswerRe: Is there way to create a webpage in C# viewed somewhere else Pin
Klockness7-Oct-11 5:14
Klockness7-Oct-11 5:14 
QuestionError! :( Pin
angel 27-Oct-11 0:40
angel 27-Oct-11 0:40 
AnswerRe: Error! :( Pin
Pete O'Hanlon7-Oct-11 0:59
mvePete O'Hanlon7-Oct-11 0:59 
GeneralRe: Error! :( Pin
angel 27-Oct-11 2:13
angel 27-Oct-11 2:13 
GeneralRe: Error! :( Pin
Paul Conrad7-Oct-11 6:14
professionalPaul Conrad7-Oct-11 6:14 
AnswerRe: Error! :( Pin
BobJanova7-Oct-11 2:24
BobJanova7-Oct-11 2:24 
AnswerRe: Error! :( Pin
Shameel7-Oct-11 3:07
professionalShameel7-Oct-11 3:07 
AnswerRe: Error! :( Pin
Luc Pattyn7-Oct-11 3:12
sitebuilderLuc Pattyn7-Oct-11 3:12 
QuestionCollapsible panel\ Expander in C# Pin
shikhakenue6-Oct-11 23:59
shikhakenue6-Oct-11 23:59 
AnswerRe: Collapsible panel\ Expander in C# Pin
Pete O'Hanlon7-Oct-11 0:25
mvePete O'Hanlon7-Oct-11 0:25 
AnswerRe: Collapsible panel\ Expander in C# Pin
Ravi Bhavnani7-Oct-11 10:03
professionalRavi Bhavnani7-Oct-11 10:03 
AnswerRe: Collapsible panel\ Expander in C# Pin
BillWoodruff7-Oct-11 15:59
professionalBillWoodruff7-Oct-11 15:59 
GeneralRe: Collapsible panel\ Expander in C# Pin
shikhakenue10-Oct-11 1:41
shikhakenue10-Oct-11 1:41 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.