Artform04

Hi,

I have been creating a VB.net application in VS2005 for a month or so and have recently noticed a problem.

The application automatically loads up different web pages (empty html with embedded flash movie - gives the appearance of 100% size flash movie) depending on different kinds of user interaction. I am monitoring what the users are clicking on via the URL at the moment, however....

I have noticed that if a user clicks on any button in the flash movie when the button is still animating OR they click on a piece of the page that is static, all the buttons lose the actions behind them. i.e. I get "stranded" on that page.

Is there any way to fix this

Thanks, Phil

PS. I have tried using the showckwave flash control recently, but I cannot monitor the URL's of the movies this way as when you click a link within the initial movie, it goes to the selected movie, but doesnt change the URL in VS2005.



Re: Windows Forms Designer web browser control stops flash working when clicks are made anywhere but buttons

Artform04

Hello,

I have been creating a VB.net application in VS2005 for a month or so and have recently noticed a problem.

The application automatically loads up different web pages (empty html with embedded flash movie - gives the appearance of 100% size flash movie) depending on different kinds of user interaction. I am monitoring what the users are clicking on via the URL at the moment, however....

I have noticed that if a user clicks on any button in the flash movie when the button is still animating OR they click on a piece of the page that is static, all the buttons lose the actions behind them. i.e. I get "stranded" on that page.

Is there any way to fix this Maybe there is an update for the web browser control ... or a workaround

Thanks a lot, Phil

PS. I have tried using the showckwave flash control recently, but I cannot monitor the URL's of the movies this way as when you click a link within the initial movie, it goes to the selected movie, but doesnt change the URL in VS2005.





Re: Windows Forms Designer web browser control stops flash working when clicks are made anywhere but buttons

shawne000

I have just recently run into the exact same problem. You click one time on a static piece of the movie or on an interactive area, after that all interaction is lost.





Re: Windows Forms Designer web browser control stops flash working when clicks are made anywhere but buttons

shawne000

The old ActiveX browser control works fine with flash. I was able to use a custom browser control I had written in the past which resolved my problem. From what I found HERE it appears there is definitely some type of bug in the .NET control where flash is concerned. Hope this helps!





Re: Windows Forms Designer web browser control stops flash working when clicks are made anywhere but buttons

orbit

Hi

Seems to be a known issue: See here

Your exact problem needs a tiny enhancement :

Public Class MyWebBrowser

Inherits System.Windows.Forms.WebBrowser

Const WM_LBUTTONDOWN As Integer = &H201

Const WM_RBUTTONDOWN As Integer = &H204

Const WM_MBUTTONDOWN As Integer = &H207

Const WM_MOUSEACTIVATE As Integer = &H21

Private Function FindContainerControl() As ContainerControl

Dim cc As ContainerControl = Nothing

Dim ctl As Control = Me

Do While Not ctl Is Nothing

Dim tempCC As ContainerControl = TryCast(ctl, ContainerControl)

If Not tempCC Is Nothing Then

cc = tempCC

Exit Do

End If

ctl = ctl.Parent

Loop

Return cc

End Function

Protected Overrides Sub WndProc(ByRef m As System.Windows.Forms.Message)

Select Case m.Msg

Case WM_LBUTTONDOWN, WM_RBUTTONDOWN, WM_MBUTTONDOWN, WM_MOUSEACTIVATE

If Not DesignMode Then

Dim cc As ContainerControl = FindContainerControl()

If Not cc Is Nothing AndAlso Not cc.ActiveControl Is Me Then

cc.Focus()

Me.Focus()

End If

End If

DefWndProc(m)

Case Else

MyBase.WndProc(m)

End Select

End Sub

End Class


Have fun