Chat LIVE With Programming Experts! There Are 23 Online Right Now...

Welcome to Dream.In.Code
Become a VB.NET Expert!

Join 244,264 VB.NET Programmers for FREE! Get instant access to thousands of VB.NET experts, tutorials, code snippets, and more! There are 1,243 people online right now. Registration is fast and FREE... Join Now!




vb.net 2008 Show visited websites

 
Reply to this topicStart new topic

vb.net 2008 Show visited websites

smelf1
7 Jan, 2009 - 04:15 AM
Post #1

New D.I.C Head
*

Joined: 19 Mar, 2008
Posts: 30

Hi all,

I would like to be able to show all the websites visited on a machine.

How would i go about doing this.

Thanks

User is offlineProfile CardPM
+Quote Post


Jayman
RE: Vb.net 2008 Show Visited Websites
7 Jan, 2009 - 08:59 AM
Post #2

Student of Life
Group Icon

Joined: 26 Dec, 2005
Posts: 8,063



Thanked: 159 times
Dream Kudos: 500
Expert In: Everything

My Contributions
Check out the following topic.

http://www.dreamincode.net/forums/showtopic79066.htm

Dream.In.Code has a policy by which we prefer to see a good faith effort on your part before providing source code for homework assignments. Please post the code you have written in an effort to resolve the problem, and our members would be happy to provide some guidance. Be sure to include a description of any errors you are encountering as well.

Please post like this:

Thank you for helping us helping you.
User is offlineProfile CardPM
+Quote Post

smelf1
RE: Vb.net 2008 Show Visited Websites
8 Jan, 2009 - 05:37 AM
Post #3

New D.I.C Head
*

Joined: 19 Mar, 2008
Posts: 30

Thanks Jayman,

Thats something similar to what i am doing to find all sub keys in the software part of the registry.

How do i get that code to put the data to a combobox and not urllist
User is offlineProfile CardPM
+Quote Post

Jayman
RE: Vb.net 2008 Show Visited Websites
8 Jan, 2009 - 08:35 AM
Post #4

Student of Life
Group Icon

Joined: 26 Dec, 2005
Posts: 8,063



Thanked: 159 times
Dream Kudos: 500
Expert In: Everything

My Contributions
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

User is offlineProfile CardPM
+Quote Post

Fast ReplyReply to this topicStart new topic

Time is now: 7/4/09 12:18PM

Live VB.NET Help!

Be Social

Dream.In.Code RSS Feed Dream.In.Code LinkedIn Group Follow Us On Twitter Fan Us On Facebook

VB.NET Tutorials

Reference Sheets

VB.NET Snippets

DIC Chatroom

Bye Bye Ads

Monthly Drawing

Thumb Drive

Top Contributors

Top 10 Kudos This Month