title: converting string to uint
body: <p>I am trying to read in a hex value from a text box and then put it in a uint, this is the code:</p>
  
  <pre><code>UInt32 x = Convert.ToUInt32(location_txtbox.ToString());
  </code></pre>
  
  <p>Why, I want to pass x to some unmanaged code and the function header requires a DWORD.</p>
  
  <p>I'm getting an 'input string was not in correct format error?  I am trying to input values such as 0x7c or 0x777 but I keep getting errors?</p>
  
  <p>Thanks.</p>