Now, that's assuming that all the values ARE strings. If they're not then I think this should work anyway:
VB Code:
  1. Dim regKey As Microsoft.Win32.RegistryKey = My.Computer.Registry.CurrentUser.OpenSubKey("Software\Microsoft\Internet Explorer\TypedURLs")
  2. Dim valueNames As String() = regKey.GetValueNames()
  3. Dim upperBound As Integer = valueNames.GetUpperBound(0)
  4. Dim values(upperBound) As Object
  5.  
  6. For i As Integer = 0 To upperBound Step 1
  7.     values(i) = regKey.GetValue(valueNames(i))
  8. Next i
  9.  
  10. Me.ComboBox1.Items.AddRange(values)
I believe that that will simply call the ToString method of each object so if it isn't a string already it will be converted to one. For some types that will not display the actual data, like REG_BINARY, but at least it will not crash.