MSDN > フォーラム ホーム > Visual C# Express Edition > webbrowser control can't run flash.
質問する質問する
 

回答済みwebbrowser control can't run flash.

  • 2008年8月13日 1:03gmmo ユーザーのメダルユーザーのメダルユーザーのメダルユーザーのメダルユーザーのメダル
     

    Hi,

     

    Not sure if this is the best place to post this question, but here we go.

     

    I am using the webbrowser control on C# app. I am trying to use 2008 Express edition (just moved to it ) and Vista home edtion--sorry don't have $$$ to buy the expensive stuff. Hopefully my issue is not related to the free software.

     

    Now, I try to load url with flash content in it through the webbrowser control. Yet, it simply doesn't work. I installed flash9 but it complains about not finding flash.ocx. Actually the app simply puts annoying "x" but when I close devstudio it informs about this.

     

    I googled around a bunch of posts and tried a bunch of things but none of them work. Most of the posts I've read seemed old and/or geared towards XP.

     

    I did a search for *.ocx on my computer (although flash 9 is installed because the iexplorer works fine) and did not find any file called alike.  I believed flash9 does not use these names anymore. Not sure though.

     

    Anyway, I am sort of stuck. And wonder if anyone has had this problem and has a solution that is up to date.

     

    thx!

回答

  • 2008年8月15日 6:45Xun Ye ユーザーのメダルユーザーのメダルユーザーのメダルユーザーのメダルユーザーのメダル
     回答済み

    Hi gmmo,


    As far as I know, if the Internet explorer in your machine can play the flash video, then the “WebBrowser” control in .Net framework can also do this, so please make sure the IE in your machine works fine with the flash ActiveX control.


    If the “Internet explorer” fails to work with flash video, you can download and install the Flash Player 10 ActiveX Control from the below LINK.

    http://labs.adobe.com/downloads/flashplayer10_ax.html


    Regards,

    Xun

     

すべての返信

  • 2008年8月15日 6:45Xun Ye ユーザーのメダルユーザーのメダルユーザーのメダルユーザーのメダルユーザーのメダル
     回答済み

    Hi gmmo,


    As far as I know, if the Internet explorer in your machine can play the flash video, then the “WebBrowser” control in .Net framework can also do this, so please make sure the IE in your machine works fine with the flash ActiveX control.


    If the “Internet explorer” fails to work with flash video, you can download and install the Flash Player 10 ActiveX Control from the below LINK.

    http://labs.adobe.com/downloads/flashplayer10_ax.html


    Regards,

    Xun

     

  • 2008年8月16日 17:43gmmo ユーザーのメダルユーザーのメダルユーザーのメダルユーザーのメダルユーザーのメダル
     

    Thanks for the answer but you are wrong.

     

    This is exactly what is driving me crazy. The explorer plays it correctly, but the webbrowser control fails. I did install the latest flash and remove it many times. In fact some of the posts I saw suggested to use an older flash version. I tried that and it didn't work.

     

    I can't believe noone has had this problem before. The webbrowser control is vastly used in many apps. Perhaps people haven't upgrate everything to the latest yet.

     

    nonetheless, it still doesn't work for me.

     

    any leads on how I post a bug to the microsoft guys?

     

    tchau,

    Gustavo.

  • 2008年8月18日 2:14Xun Ye ユーザーのメダルユーザーのメダルユーザーのメダルユーザーのメダルユーザーのメダル
     

    Hi gmmo,

    If you want to give your feedback or report a bug to Visual Studio product team, please kindly do it via the following connect.

    http://connect.microsoft.com/visualstudio/

    Regards,

    Xun

     

  • 2009年7月3日 11:13U.Mihnea ユーザーのメダルユーザーのメダルユーザーのメダルユーザーのメダルユーザーのメダル
     コードあり
    I didn't understand what you trying to say... just a code in Visual Basic, adapted for C# ( a very similar langualge ), please Reply me with "Wrong" if I'm really wrong, here's the code:

    {
    If not webBrowser1.Document.ActiveXInstance = Nothing Then
       If My.Compuer.FileSystem.Find(".............ocx" Then
            MessageBox.show("Must install Adobe Flash Player to see content!")
        }
    }
    
    Just put the correnct name of the Flash .ocx file, you can find it here on XP or Vista: C:\WINDOWS\Downloaded Program Files\
    Please vote me when I'm good, mark my thread as answer when I'm almost the best!
  • 2009年7月21日 3:02arronf ユーザーのメダルユーザーのメダルユーザーのメダルユーザーのメダルユーザーのメダル
     

    I also have the problem whereby the webbrowser control is looking for flash.ocx even though IE works perfectly well and manages to locate flash10b.ocx.

    why would the web browser be attempting to use an old, generic or non-existent flash activeX control file? why woudl the settings be ANY differnt to tth regular IE ?? and most importantly, how can this be changed?

  • 2009年7月30日 16:15fqian10 ユーザーのメダルユーザーのメダルユーザーのメダルユーザーのメダルユーザーのメダル
     
    I have the exactly same problem and not got any solution yet. What I found actually the problem was only happened on my Window Vista machine (both sp1 & sp2). It never got problem on XP. So I believe it's a Vista bug.
  • 2009年9月9日 12:43nyqex ユーザーのメダルユーザーのメダルユーザーのメダルユーザーのメダルユーザーのメダル
     

    Is anyone found resolution on flash10 playing in “WebBrowser” control in .Net framework on Windows Vista?

    http://www.f-in-box.com/dotnet/download.html
    supports flash10.
  • 2009年9月10日 10:24S_RS ユーザーのメダルユーザーのメダルユーザーのメダルユーザーのメダルユーザーのメダル
     

    I have the same problem but with some subtle difference: simple movies in old format WebBrowser CAN play but it can not play new fancy movies or smth like that. Perhaps, the old player has been installed correctly, but new player installed correctly only for regular IE.


    Andrew
    • 編集済みS_RS 2009年9月10日 10:26grammar
    •  
  • 2009年9月14日 15:26Sunkish ユーザーのメダルユーザーのメダルユーザーのメダルユーザーのメダルユーザーのメダル
     
    I had the same problem on windows 7. The problem was that the web browser used by my C# app was IE 64bit and flash doesn't currently support 64bit browsers. Try to compile the program to x86 if you are running a 64 bit OS.