Click here to Skip to main content
15,891,689 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hello, i'm working on a VB.NET application with WinForms.

I will create one custom form by pressing button in menu, with an axMediaPlayer on every form controlled by some button already existing in the MDI Form.

How can i get control of the property of the new form created?

What I have tried:

In menu button of MDI form i've this code:
VB
Dim myPlayer As New MediaPlayer
myPlayer.MdiParent = Me
myPlayer.Show()


This will create a new MediaPlayer into my MDI form.

For this MediaPlayer i want to control Play Pause and other option by pressing one button that already exist.
VB
thePlayer.Ctlcontrols.play() 'I need to control the new player created

How can i "link" click of already existing button to the NEW MediaPlayer form?
Posted
Updated 3-Dec-20 0:51am

1 solution

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900