Been a while since I've done any vb.net, so please bear with me if this is a really silly mistake.
I'm building a media player, designed for a 2 monitor setup (monitor 1 is the 'display' screen and monitor 2 is a touchscreen display which I will be using to control the whole thing)
I have everything working perfectly except for one teeny weeny detail. The control buttons.
The Control Form appears on Monitor 2, on a seperate form to the Media Player control, which appears on Monitor 1.
This is the code that governs the buttons I'm using to control the Media Player
Private Sub btn_PlayPause_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btn_Pause.Click, btn_Play.Click If frm_VideoPlayer.mp_player.playState = WMPLib.WMPPlayState.wmppsPlaying = True Then frm_VideoPlayer.mp_player.Ctlcontrols.pause() btn_Pause.Text = "Pause" ElseIf frm_VideoPlayer.mp_player.playState = WMPLib.WMPPlayState.wmppsPaused = True Then frm_VideoPlayer.mp_player.Ctlcontrols.play() btn_Pause.Text = "Play" End If End Sub
From what I remember/know of vb.net, this should work, but it doesn't unfortunately so I'm at a bit of a loss at to what's going on.
Would anyone be able to shed some light or point me in the right direction?