title: c# WinForm - how asking for credential with a Dialog form?
body: <p>What is the better way for asking for username and password in c#?</p>
  
  <p>I need them to pass in a <code>DirectoryContext</code> Class call.</p>
  
  <p>I need something like Get-Credential in Powershell, to store username and password in a variable.</p>
  
  <p>Googling for it I found some interesting Class for this job, but there isn't a built in class in framework 4.0 ( exemple: <code>var cred = new credentialDialog()</code>?</p>
  
  <p>Strong Security is an optional, need just mask the input password field.</p>
  
  <p>Thank you all</p>