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

Recommended Answers

All 3 Replies

A code will help so we can see how you ran it.

 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

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

webbrowser.Dispose()

`

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.