Problems with Flash in WebBrowser

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • =?Utf-8?B?bGpsZXZlbmQy?=

    #1

    Problems with Flash in WebBrowser

    I am having problems interacting with flash objects (i.e., Adobe Flash Player
    9) in web pages when using a System.Windows. Forms.WebBrowse r control. The
    flash objects always seem to display correctly, but when I click on a link
    within the flash object the WebBrowser often fails to navigate to the new
    page. If I use IE6 (from outside by app) or an AxSHDocVw.AxWeb Browser
    control (within my app) then everything works as expected.

    You can try this out by creating an app with the following code:

    Public Class Form1
    Public Sub New()
    InitializeCompo nent()
    Me.Size = New Drawing.Size(60 0, 600)
    Dim wb As New System.Windows. Forms.WebBrowse r
    wb.Dock = DockStyle.Fill
    wb.Url = New System.Uri("htt p://www.falcon-nw.com/")
    Me.Controls.Add (wb)
    End Sub
    End Class

    On the web site that opens I can normally navigate to one of the links
    (e.g., “WHAT’S NEW”). After that the page usually won’t navigate to any of
    the other links.

    Note that using the AxWebBrowser control would be acceptable if I could
    reproduce several of the methods, properties and events that are exposed by
    the WebBrowser, such as DocumentText, ShowPageSetupDi alog, and NewWindow
    (among others).

    Thanks for any help!
    Lance

  • Luke Zhang [MSFT]

    #2
    RE: Problems with Flash in WebBrowser

    Hello Lance,

    WebBrowser control have a property named DocumentText so we can get the
    HTML document text thorugh it. But for other like ShowPageSetupDi alog, and
    NewWindow, there is no direct support in WebBrowser control. Anyway, you
    may achieve this by invoke commands of the HTMLDOCUMENT:

    HOW TO: Invoke the Find, View Source, and Options Dialog Boxes for the
    WebBrowser Control from Visual C# .NET


    Hope this help,

    Sincerely,

    Luke Zhang

    Microsoft Online Community Support
    =============== =============== =============== =====
    Get notification to my posts through email? Please refer to
    http://msdn.microsoft.com/subscripti...ult.aspx#notif
    ications.

    Note: The MSDN Managed Newsgroup support offering is for non-urgent issues
    where an initial response from the community or a Microsoft Support
    Engineer within 1 business day is acceptable. Please note that each follow
    up response may take approximately 2 business days as the support
    professional working with you may need further investigation to reach the
    most efficient resolution. The offering is not appropriate for situations
    that require urgent, real-time or phone-based interactions or complex
    project analysis and dump analysis issues. Issues of this nature are best
    handled working with a dedicated Microsoft Support Engineer by contacting
    Microsoft Customer Support Services (CSS) at
    http://msdn.microsoft.com/subscripti...t/default.aspx.
    =============== =============== =============== =====

    This posting is provided "AS IS" with no warranties, and confers no rights.



    Comment

    • =?Utf-8?B?bGpsZXZlbmQy?=

      #3
      RE: Problems with Flash in WebBrowser

      Hi Luke,

      Thanks for the info. It seems that the best solution would be to figure out
      why flash is not working in the System.Windows. Forms.WebBrowse r control. Any
      ideas or possible fixes?

      Thanks again,
      Lance

      Comment

      • Luke Zhang [MSFT]

        #4
        RE: Problems with Flash in WebBrowser

        Hi Lance,

        When you said "flash is not working in the System.Windows. Forms.WebBrowse r
        control", do yo mean it generate some exception or it cannot
        intercommuicate with your code? Does this happen with other flash
        object/page?

        Sincerely,

        Luke Zhang

        Microsoft Online Community Support
        =============== =============== =============== =====
        Get notification to my posts through email? Please refer to
        http://msdn.microsoft.com/subscripti...ult.aspx#notif
        ications.

        Note: The MSDN Managed Newsgroup support offering is for non-urgent issues
        where an initial response from the community or a Microsoft Support
        Engineer within 1 business day is acceptable. Please note that each follow
        up response may take approximately 2 business days as the support
        professional working with you may need further investigation to reach the
        most efficient resolution. The offering is not appropriate for situations
        that require urgent, real-time or phone-based interactions or complex
        project analysis and dump analysis issues. Issues of this nature are best
        handled working with a dedicated Microsoft Support Engineer by contacting
        Microsoft Customer Support Services (CSS) at
        http://msdn.microsoft.com/subscripti...t/default.aspx.
        =============== =============== =============== =====

        This posting is provided "AS IS" with no warranties, and confers no rights.



        Comment

        • =?Utf-8?B?bGpsZXZlbmQy?=

          #5
          RE: Problems with Flash in WebBrowser

          This is from my original message. Please let me know if it is unclear in any
          way.

          -----------------------------------------------------------------------------------
          I am having problems interacting with flash objects (i.e., Adobe Flash Player
          9) in web pages when using a System.Windows. Forms.WebBrowse r control. The
          flash objects always seem to display correctly, but when I click on a link
          within the flash object the WebBrowser often fails to navigate to the new
          page. If I use IE6 (from outside by app) or an AxSHDocVw.AxWeb Browser
          control (within my app) then everything works as expected.

          You can try this out by creating an app with the following code:

          Public Class Form1
          Public Sub New()
          InitializeCompo nent()
          Me.Size = New Drawing.Size(60 0, 600)
          Dim wb As New System.Windows. Forms.WebBrowse r
          wb.Dock = DockStyle.Fill
          wb.Url = New System.Uri("htt p://www.falcon-nw.com/")
          Me.Controls.Add (wb)
          End Sub
          End Class

          On the web site that opens I can normally navigate to one of the links
          (e.g., “WHAT’S NEW”). After that the page usually won’t navigate to any of
          the other links.
          -----------------------------------------------------------------------------------

          I would be very grateful to hear of any possible solutions.

          Thanks,
          Lance


          Comment

          • Luke Zhang [MSFT]

            #6
            RE: Problems with Flash in WebBrowser

            Hi Lance,

            I perform a similar test with your code, and here is what I found:

            1. When the Webbrowser control is just load, if I click the navigator menu
            like "About", "Desktops", it will work as expect.
            2. When the Webbrowser control is just load, I click the icon like "laptop
            system", then it go the sub area of "laptop". But, at this time, the
            navigator menus don't work anymore.

            It seems the problem is related to the status data in the flash and it mey
            be a compatibility issue.

            Sincerely,

            Luke Zhang

            Microsoft Online Community Support
            =============== =============== =============== =====
            Get notification to my posts through email? Please refer to
            http://msdn.microsoft.com/subscripti...ult.aspx#notif
            ications.

            Note: The MSDN Managed Newsgroup support offering is for non-urgent issues
            where an initial response from the community or a Microsoft Support
            Engineer within 1 business day is acceptable. Please note that each follow
            up response may take approximately 2 business days as the support
            professional working with you may need further investigation to reach the
            most efficient resolution. The offering is not appropriate for situations
            that require urgent, real-time or phone-based interactions or complex
            project analysis and dump analysis issues. Issues of this nature are best
            handled working with a dedicated Microsoft Support Engineer by contacting
            Microsoft Customer Support Services (CSS) at
            http://msdn.microsoft.com/subscripti...t/default.aspx.
            =============== =============== =============== =====

            This posting is provided "AS IS" with no warranties, and confers no rights.



            Comment

            Working...