Home > Archive (Community help, from old helpdesk) > Looking for sample code for MultiScreen_AddScreen in ActiveX

Looking for sample code for MultiScreen_AddScreen in ActiveX

Avatar image
Aug 24, 2015
Archive Agent wrote
I'm trying to use MultiScreen_AddScreen so that a video file is played simultaneously to two windows, but I can't get this to work. In the VB Video_Player_Demo.2010 I have tried adding

form2 = New Form2
form2.Show()
MediaPlayer1.MultiScreen_AddScreen(form2.Handle, form2.Width, form2.Height)

to the Form1_Load procedure (after creating Form2 and declaring 'Dim form2 As Form2' in the Form1 class), but when I run the program nothings gets displayed on Form2.

Any suggestions or sample code (VB or C++)?

Mike Daniell on January 24, 2013 10:31
Completed
0
Vote
Reply
2 Answers
Aug 24, 2015
Archive Agent agent wrote
Will

I've also have seen this behavior. The example is using the Panel control (and not a Form) for the VideoCapture object to draw to. The MultiScreen_AddScreen function only calls for a Handle. Are Forms not supported, must we use a Panel control?

on January 31, 2013 23:46
Aug 24, 2015
Archive Agent agent wrote
Roman Minyaylov

Problem fixed, please donload latest SDK build.

on January 31, 2013 23:47