473,698 Members | 2,139 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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

Jan 10 '07 #1
5 12049
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
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.WebBrowse r 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.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.

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.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
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
4077
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 suggestions? Can anyone help? www.hyperion-interactive.com/test (There's a Flash sniffer first) Thanks in advance to anyone that has any pointers. Chris
1
2032
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 my Windows Form? Thanks
3
7672
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 project so that I can use it as a screensaver. I was told that the easiest way would be to add a WebBrowser control to my Windows Form and then have it load the Flash movie, but I'm not sure how to do this. I have VS.Net 2005. Also, since I plan...
3
3488
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 (seems to be a know bug with VS2005) All I want to do is PLAY flash files - and maybe control them (ie. play, pause, send vars to/from)
1
3300
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 IE6) with the following object tag: <OBJECT id="ModPkiObj" height="550" width="800" classid="http:ModPkiNew.dll#Mod.Online.Client.ModPkiNew.SignForm" name="ModPkiObj" VIEWASTEXT>
4
4201
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 into a program, and i couldnt figure out how to get it into VB6. finally i found out that the Microsoft Internet Control would play the gif file if i located it with "webbrowser1.navigate" for example, so i did this. i decided it was working fine and...
1
2225
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 solution. The problems are two fold.
10
2700
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 in "error list" "REAL-TIME". At least, that was like that in VB.NET 2005 express. But in Visual C# .NET 2005 you won't be able to aware of coding errors till you press "play" build & run button.
4
5993
by: Anil Gupte | last post by:
Any ideas/tutorials/resources? TIA, -- Anil Gupte www.keeninc.net www.icinema.com
0
8671
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, well explore What is ONU, What Is Router, ONU & Routers main usage, and What is the difference between ONU and Router. Lets take a closer look ! Part I. Meaning of...
0
9152
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
7709
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development projectplanning, coding, testing, and deploymentwithout human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
6515
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 presenter, Adolph Dupr who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5858
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
4613
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
3037
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
2321
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
1997
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.