title: VB.net | Writing a REG_BINARY to the registry
body: <p>I'm trying to write a REG_BINARY to the registry, but for some reason the second set of text is giving an error saying its expecting a }?</p>
  
  <pre><code>My.Computer.Registry.SetValue("HKEY_CURRENT_USER\TEST", "KEY", New Byte() {86, 23, E3, 92, 1E, E8, 65, 07, D5, 12, 1E, E3, E3, E3, E3},RegistryValueKind.Binary)
  </code></pre>
  
  <p>How would I write that into the registry as REG_BINARY? </p>
  
  <p>After ab it states cd expected a } after it?</p>
  
  <p><strong>EDIT</strong> </p>
  
  <p>I'm Sorry for not mentioning...It really does make a difference to the question, the content I'm trying to write is HEX.</p>