Click here to Skip to main content
15,881,803 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
I am attempting to create a history function for my tabbed web browser, however, I have two errors:

1. 'item' is not delcrared

2. navigate is not a member of TabControl

Here is the code. The code in bold are the problematic areas:

Public Class history
    Private Sub history_Load(sender As Object, e As EventArgs) Handles MyBase.Load
        lbHistory.Items.Add(item)
    End Sub
    Private Sub btnClearHistory_Click(sender As Object, e As EventArgs) Handles btnClearHistory.Click
        My.Settings.history.Clear()
        lbHistory.Items.Clear()
    End Sub
    Private Sub btnRemoveHistory_Click(sender As Object, e As EventArgs) Handles btnRemoveHistory.Click
        My.Settings.history.Remove(lbHistory.SelectedItem)
    End Sub

    Private Sub btnLoadHistory_Click(sender As Object, e As EventArgs) Handles btnLoadHistory.Click
        main.TabControl1.navigate(lbHistory.SelectedItem)
    End Sub
    
End Class


What I have tried:

I have done research on my own using Google and followed some code suggestions, but to no avail.
Posted
Comments
Graeme_Grant 18-Sep-17 21:03pm    
Which line has this problem? "'item' is not declared"

"navigate is not a member of TabControl" - TabControl does not have this method. WebBrowser control does.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900