Problems with Flash in WebBrowser

G

Guest

I am having problems interacting with flash objects (i.e., Adobe Flash Player
9) in web pages when using a System.Windows.Forms.WebBrowser 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.AxWebBrowser
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()
InitializeComponent()
Me.Size = New Drawing.Size(600, 600)
Dim wb As New System.Windows.Forms.WebBrowser
wb.Dock = DockStyle.Fill
wb.Url = New System.Uri("http://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, ShowPageSetupDialog, and NewWindow
(among others).

Thanks for any help!
Lance
 
L

Luke Zhang [MSFT]

Hello Lance,

WebBrowser control have a property named DocumentText so we can get the
HTML document text thorugh it. But for other like ShowPageSetupDialog, 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
http://support.microsoft.com/Default.aspx?kbid=329014

Hope this help,

Sincerely,

Luke Zhang

Microsoft Online Community Support
==================================================
Get notification to my posts through email? Please refer to
http://msdn.microsoft.com/subscriptions/managednewsgroups/default.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/subscriptions/support/default.aspx.
==================================================

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

Guest

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.WebBrowser control. Any
ideas or possible fixes?

Thanks again,
Lance
 
L

Luke Zhang [MSFT]

Hi Lance,

When you said "flash is not working in the System.Windows.Forms.WebBrowser
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/subscriptions/managednewsgroups/default.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/subscriptions/support/default.aspx.
==================================================

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

Guest

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.WebBrowser 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.AxWebBrowser
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()
InitializeComponent()
Me.Size = New Drawing.Size(600, 600)
Dim wb As New System.Windows.Forms.WebBrowser
wb.Dock = DockStyle.Fill
wb.Url = New System.Uri("http://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
 
L

Luke Zhang [MSFT]

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/subscriptions/managednewsgroups/default.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/subscriptions/support/default.aspx.
==================================================

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

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top