0

i have a tabbed web browser so every time i close a tab the tab is closed but the process is still running for example one of my tabs there is a youtube page opened so if i close that tab the video is still runing you even can hear the sounds so how to close and kill the web browser process in the selected tab

2
Contributors
3
Replies
17
Views
2 Years
Discussion Span
Last Post by scomx
0
 Public Sub removetab()
    If TabControl1.TabPages.Count <> 1 Then
        Dim browser As webbrowser = Me.TabControl1.SelectedTab.Tag
        browser.Stop()
        TabControl1.TabPages.Remove(TabControl1.SelectedTab)
        url.Text = TabControl1.SelectedTab.Text

    End If
End Sub
0

i found the solution but thank you any way ,this is the solution

webbrowser.Dispose()

`

This question has already been answered. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.