473,406 Members | 2,352 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,406 software developers and data experts.

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.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

Jan 10 '07 #1
5 12032
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/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.

Jan 10 '07 #2
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

Jan 10 '07 #3
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/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.

Jan 11 '07 #4
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
Jan 12 '07 #5
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.

Jan 12 '07 #6

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: Chris | last post by:
I'm desperately trying to get my site finished against the clock. It looks great in FF, Opera and IE6 but falls apart in IE5 and Safari. I HAVE to have it ok for IE5.x. Has anyone got any...
1
by: VMI | last post by:
Since I'm interested in developing a screensaver and the animation that I need to do can be done in Macromedia Flash, would it be possible, would it be possible to integrate a Flash component into...
3
by: VMI | last post by:
I asked this question some time ago, and I received a reply, but I never followed up on the suggestion. That's why I'm posting again... I'm trying to add a Macromedia Flash movie to my C# windows...
3
by: Tim Dixon | last post by:
Hi, Can someone tell me how to get a flash file to play in Visual Basic .net? (VS2005) Tried adding a com component to the toolbox (as it worked in VS2003), but this produces an error in 2005...
1
by: L. Chernov | last post by:
Hello, I am trying to work with .Net 2005 WebBrowser object, and put it on a "Windows control library" (embedded in a user control class) and then I am executing it from an ASP.Net webform(with...
4
by: dennijr | last post by:
sry its long, questions in the last sentance if u wanna jump to it. i just decided that i would include everything that led up to the problem i made a gif video that i wanted to put...
1
by: terrybali | last post by:
Hi Guys I am new to forum and nontechnical. My site has several large flash files. I am looking for someone who can help us solve two problems. Willing to pay whatever normal rate is for this...
10
by: kimiraikkonen | last post by:
Visual C#.NET 2005 express has some issues, unlike VB.NET 2005 has none of them: The most annoying one is: For example if there's a coding error, it must be reported at the buttom of the screen...
4
by: Anil Gupte | last post by:
Any ideas/tutorials/resources? TIA, -- Anil Gupte www.keeninc.net www.icinema.com
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.