title: Retrieving Full Computer Name
body: <p>I am developing a Windows Application by using C#. I have a form in which I dragged one textBox and one button control. I want to retrieve the user Full Computer Name in the textBox by clicking the button.I wrote some codes for that as..........</p>
  
  <pre><code>private void button1_Click(object sender, EventArgs e)            
  {                
      string name = System.Environment.MachineName;                
      textBox1.Text = name[0].ToString();            
  }
  </code></pre>
  
  <p>By clicking the button, it retrieves only the first letter(eg: D for Donald-PC) of the Computer Name by which it starts but I want to retrieve the Full Name(eg: Donald-PC). Please someone help if I have make any change in my codes.Thanks</p>