You can simply use that function and data bind it directly to the ComboBox in the Load event of your form.
Example:
CODE
Public Class Form2
Private Sub Form2_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load
'Bind the list to the ComboBox
Me.ComboBox1.DataSource = PopulateUrlList()
End Sub
Public Function PopulateUrlList() As List(Of String)
Dim regKey As String = "Software\Microsoft\Internet Explorer\TypedURLs"
Dim subKey As Microsoft.Win32.RegistryKey = Microsoft.Win32.Registry.CurrentUser.OpenSubKey(regKey)
Dim url As String
Dim urlList As New List(Of String)()
Dim counter As Integer = 1
While True
Dim sValName As String = "url" + counter.ToString()
url = DirectCast(subKey.GetValue(sValName), String)
If DirectCast(url, Object) Is Nothing Then
Exit While
End If
urlList.Add(url)
counter += 1
End While
Return urlList
End Function
End Class