![]() |
|
[.NET] [help] how to disable sound in webbrowser ? [vb.net] - Printable Version +- Hack Forums (https://hackforums.net) +-- Forum: Tech (https://hackforums.net/forumdisplay.php?fid=444) +--- Forum: Coding (https://hackforums.net/forumdisplay.php?fid=151) +---- Forum: Software Development (https://hackforums.net/forumdisplay.php?fid=118) +---- Thread: [.NET] [help] how to disable sound in webbrowser ? [vb.net] (/showthread.php?tid=322440) Pages: Pages
1
2
|
[help] how to disable sound in webbrowser ? [vb.net] - rawi16 - Mar 19, 2010 as the title says , how i can do that ? for example if the webbrowser is on youtube (any video) to mute the sound of that video or any sound that coming from the webbrowser. BUMP !!! BUMP !!! BUMP !!! * - HaXZX0r - Mar 19, 2010 I suggest you visit the microsoft.public.inetsdk.programming.webbrowser_ctl newsgroup. I think that they got something like this. * - rawi16 - Mar 19, 2010 wt is that ? (msg aint that short) * - HaXZX0r - Mar 19, 2010 (Mar 19, 2010 08:38 AM)rawi16 Wrote: wt is that ? http://www.microsoft.com/windows/ie/support/newsgroups/howto.mspx 0-0 * - rawi16 - Mar 19, 2010 i still dont get it , how that suppose to help me ? * - Loget - Mar 19, 2010 http://www.daniweb.com/forums/post1118129.html#post1118129 Enjoy.😝 * - rawi16 - Mar 19, 2010 i tried that one , but as i remember it didnt work. * - MisterDeepRot - Mar 19, 2010 Code Public Sub DisableSound()Put this in a Module, then on form load add DisableSound() - it works with all versions of windows. * - rawi16 - Mar 19, 2010 thats wt i did : module1.vb : Code Imports Microsoft.Win32form1.vb : Code Imports Microsoft.Win32and its not working. * - Cunt - Mar 19, 2010 any errors , or just still sound? * - rawi16 - Mar 19, 2010 still sounds , no errors. * - Camfrog - Mar 19, 2010 Just hide the webbrowser, like this Code Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.LoadIt's work's for me fine. * - rawi16 - Mar 19, 2010 tried , but the sound stays , * - Pr4wn - Mar 20, 2010 I had to modify it a bit to work in my vb 2008 so if mine doesn't work for you try the original code at links. References: http://stackoverflow.com/questions/393166/how-to-disable-click-sound-in-webbrowser-control http://msdn.microsoft.com/en-us/library/ms537168%28VS.85%29.aspx Code Private Const FEATURE_DISABLE_NAVIGATION_SOUNDS As Integer = 21* - ubbelol - Mar 20, 2010 What sound are you talking about? The click sound on loadings or like youtube videos sound? |