0 Replies - 1033 Views - Last Post: 19 June 2014 - 06:56 AM Rate Topic: -----

#1 beic  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 17
  • Joined: 29-June 12

WebBrowser Control - Full Screen mode detection

Posted 19 June 2014 - 06:56 AM

Hi there,

I'm trying to detect full screen mode with WebBrowser Control...

So, When the video is loaded into WebBrowser Control and you Double click on video then it's goes Full screen mode and if you Double click again it goes back to normal view mode.

Loading the Html file and Navigate:
WebBrowser1.Navigate App.Path & "\example.htm"


Here is the htm file called "example.htm" to load into WebBrowser Control:
<html>

<body topmargin="0" leftmargin="0" scroll="no">

 <iframe 
  width="640"
  height="385"
  src="http://www.youtube.com/embed/xtYIEBOQ1eQ?rel=0&autoplay=1"
  allowfullscreen="true"
  menu="false"
  frameborder="0">
</iframe>

</body>

</html>


Now I wish to detect those events!

p.s. I already tried to use:
Private Sub WebBrowser1_OnFullScreen(ByVal FullScreen As Boolean)

 Form1.Caption = CStr(FullScreen)

End Sub


But, it's nothing to do with Full screen what I'm trying to achieve.
(Also tried the Microsoft HTML Object Library, but nothing there useful)

Can someone help me out, please?

Regards

Is This A Good Question/Topic? 0
  • +

Page 1 of 1