Skybound Software is looking to hire experienced C# developers to work on Stylizer and other forthcoming Skybound products. Click here for details.
GeckoFX is an open-source component which makes it easy to embed Mozilla Gecko (Firefox) into any .NET Windows Forms application. Written in clean, fully commented C#, GeckoFX is the perfect replacement for the default Internet Explorer-based WebBrowser control. Download GeckoFX @ Google Code >
GeckoFX is made by Skybound Software, authors of Stylizer—the professional CSS editor with a strong focus on visual control, error-free workflow, and productivity. Learn About Stylizer >
Discuss GeckoFX, the Open-Source Gecko Control for .NET
You are not logged in.
Pages: 1
When removing a tab that contains a web page that is playing an embedded movie file (flash, divx, etc) the movie continues to play - even though the tab has been removed from the tab control. How do I stop the files from playing when I remove a tab from the tab control? (BTW, I'm using an owner drawn tab control) I don't want to destroy the browser instance contained on the removed tab page because I've implemented a system to restore closed tabs.
Offline
Issue resolved:
I am adding both the tab page and the browser instance to a list (for keeping track of recent browsing history) as well as a stack (for reopening closed tabs). What I was doing was first attempting to stop browser activity using the Stop method of the control and then adding the tab page to both the list and stack. What I needed to do was add the tab page to the list and stack and then call the Stop method of the browser control followed by a navigation to about:blank - which stopped all movie activities on the page.
Offline
hey i having same problem what should i do to remove tab and browser :|
here my code
If Not BrowserTab.TabPages.Count = 1 Then
BrowserTab.TabPages.RemoveAt(BrowserTab.SelectedIndex)
BrowserTab.SelectTab(BrowserTab.TabPages.Count - 1)
int = int - 1
End Ifcan Please give code so i can understand do what you save to stop this
Offline
Hey man i really need this i try to find solution for this all over net but have no luck
every tab browser project i seen the video still play after that tab is remove so i request you to help me out with it :D
Last edited by rock_star (February 08, 2010 12:57 PM)
Offline
I no longer have the project - hence the code is gone. Sorry.
You could just navigate the browser instance away from the page playing video and then close it on the navigating event.
Last edited by softwerx (February 08, 2010 10:52 PM)
Offline
Pages: 1