473,399 Members | 3,832 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,399 software developers and data experts.

VB.Net webrowser control problem with flash

The problem is that if you navigate the control to a page containg a flash swf object, the object will play once (suppose it has a button to do that). After it plays once it wont play again. Same page works just fine in IE6 or IE7 problem is just in the browser.

In searching for answer (hours and hours! thank you ms) I found a solution that declares a new class overiding the browser control and changes one of the functions. I tried to put that in my code but the compiler complained of the control not being 'culturally neutral' or some such irrelevant garbage so I could't get it working.

Does anyone know how to get around this problem. Is there an updated browser control somewhere. Thanks for any and all help
Oct 8 '07 #1
1 1505
Well after long hard frustrating and maddening hours I made it work with this:

Public Class myWebBrowser

'productivity tools???? LMFAO

Inherits System.Windows.Forms.WebBrowser

Protected Overrides Sub WndProc(ByRef m As System.Windows.Forms.Message)
Select Case m.Msg
Case &H201, &H204, &H207, &H21 ' WM_LMOUSEBUTTON
MyBase.DefWndProc(m)
Return
End Select
MyBase.WndProc(m)
End Sub 'WndProc

Declare this class. Replace the MS webrowser with an instance of this one. Flash then works as expected
Oct 9 '07 #2

Sign in to post your reply or Sign up for a free account.

Similar topics

0
by: Todd | last post by:
I am trying to imbed the IE web browser control in my application. I want to sit on the text input fields on the web page and recieve keyup/keydown events. These events are not getting back to...
1
by: mike.hodgson | last post by:
Hi, I have an image in a webrowser which is 3000 pixels wide so does not fit in the browsers window. It is a CAD drawing so needs this detail. Using the scroll bars makes the image difficult to...
0
by: Ron Vecchi | last post by:
Hello, Through using this and many other Microsoft dotnet newsgroups I have been pointed towards many helpful open source projects and articles that have helped a great deal in my studies as...
2
by: Alex Maghen | last post by:
I want to insert (or not insert) a Macromedia Flash object on my ASP.NET .ASPX page. What is the most elegant way of doing this? I know that I could use an <ASP:Literal> control and just spit the...
1
by: Chase Gale | last post by:
Hello, I am developing a large financial application... In a section of the app I host a Microsoft Webbrowser control which connects to a bank and displays thier Java Applet. The problem I am...
0
by: kamimeer | last post by:
I am using .net 2.0 and WebBrowser control that comes with it in C#.I am having some issue trying to do a POST action on a Web URL. I have a site that has two input fields in it, but when I try to...
3
by: VMI | last post by:
What are the advantages/disadvantages of using the Flash component on my screensaver application? The basic animation that the screensaver will include can be done either with Flash or by writing...
0
by: sbuggle | last post by:
Hi, I posted an earilier post vb6 and shellexecute to accomplish my task but think this is better with the webrowser control. I have to do a search with vb6 and somehow open up the third url on...
4
by: jim | last post by:
I want to make a WYSIWYG editor for HTML pages that can detect events in the webbrowser control in real time and control the webbrowser control (and internal documents) to allow simple stuff like...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
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:
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
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
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 project—planning, coding, testing,...
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.