Now, that's assuming that all the values ARE strings. If they're not then I think this should work anyway: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.VB Code:
Dim regKey As Microsoft.Win32.RegistryKey = My.Computer.Registry.CurrentUser.OpenSubKey("Software\Microsoft\Internet Explorer\TypedURLs") Dim valueNames As String() = regKey.GetValueNames() Dim upperBound As Integer = valueNames.GetUpperBound(0) Dim values(upperBound) As Object For i As Integer = 0 To upperBound Step 1 values(i) = regKey.GetValue(valueNames(i)) Next i Me.ComboBox1.Items.AddRange(values)




Reply With Quote