Retrieving Environment info in C#

Note: This Information may include platform information,Operating System version,Username, Machine name,.NET Framework version,environment variable values etc...
 
The code is shown below:
  1. using System;  
  2. using System.Collections.Generic;  
  3. using System.ComponentModel;  
  4. using System.Data;  
  5. using System.Drawing;  
  6. using System.Linq;  
  7. using System.Text;  
  8. using System.Windows.Forms;  
  9. namespace SystemEnvironment   
  10. {  
  11.     public partial class Form1: Form   
  12.     {  
  13.         public Form1()  
  14.         {  
  15.             InitializeComponent();  
  16.             info();  
  17.         }  
  18.         private void info()   
  19.         {  
  20.             label1.Text = Environment.CurrentDirectory;  
  21.             label2.Text = Environment.UserDomainName;  
  22.             label3.Text = Environment.UserName;  
  23.             label4.Text = Environment.OSVersion.ToString();  
  24.             label5.Text = Environment.MachineName;  
  25.             label6.Text = Environment.StackTrace;  
  26.         }  
  27.     }  
  28. }  
Your Info
 
 
 
 Thanks.!!
Next Recommended Reading Create A Calculator Using C# Application