[help]fullscreen glitch[help]

Posts 1–15 of 15 · Page 1 of 1
[help]fullscreen glitch[help]
im making a button for full screen in VB and when it opens wanna show a button to be able to close it, but when it focuses on it then the full screen goes away, and if i make it 1st button 2nd full screen then the button is not visible, help?
hmmm... sounds wierd...
screenshot maybe?
vid, ok!!! w8 a 1/2 hour...
heres my code
Code:
Try
            Button1.Show()
            AxWindowsMediaPlayer1.fullScreen = True
            Button1.Focus()
            Button1.Top = True
        Catch ex As Exception
            MessageBox.Show("An error has occured, please contact the coder.", "Error", MessageBoxButtons.OK, MessageBoxIcon.Error)
Button1.hide ()
        End Try
Quote Originally Posted by mnpeep View Post
vid, ok!!! w8 a 1/2 hour...
heres my code
Code:
Try
            Button1.Show()
            AxWindowsMediaPlayer1.fullScreen = True
            Button1.Focus()
            Button1.Top = True
        Catch ex As Exception
            MessageBox.Show("An error has occured, please contact the coder.", "Error", MessageBoxButtons.OK, MessageBoxIcon.Error)
Button1.hide ()
        End Try
hmmm maybe try labels instead of buttons?

but why do you need the focus stuff? thats prolly whats messing it up?
w8 im uploading now...
EDIT: http://www.youtube.com/watch?v=bOIw3lb-KmIⓘ it has HORRIBLE quality, so here's the form code:
Code:
Public Class Form2

    Private Sub mexit_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles mexit.Click
        Application.Exit()
    End Sub

    Private Sub play_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles play.Click
        AxWindowsMediaPlayer1.Ctlcontrols.play()
    End Sub

    Private Sub mstop_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles mstop.Click
        AxWindowsMediaPlayer1.Ctlcontrols.stop()
    End Sub

    Private Sub mpause_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles mpause.Click
        AxWindowsMediaPlayer1.Ctlcontrols.pause()
    End Sub

    Private Sub mup_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles mup.Click
        AxWindowsMediaPlayer1.settings.volume = AxWindowsMediaPlayer1.settings.volume + 10
    End Sub

    Private Sub mdown_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles mdown.Click
        AxWindowsMediaPlayer1.settings.volume = AxWindowsMediaPlayer1.settings.volume - 10
    End Sub

    Private Sub mmute_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles mmute.Click
        If AxWindowsMediaPlayer1.settings.volume = AxWindowsMediaPlayer1.settings.mute() Then
            AxWindowsMediaPlayer1.settings.volume = 20
        Else
            AxWindowsMediaPlayer1.settings.volume = AxWindowsMediaPlayer1.settings.mute()
        End If
    End Sub

    Private Sub Open_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Open.Click
        Try
            OpenFileDialog1.InitialDirectory = "My Computer"
            OpenFileDialog1.ShowDialog()
            AxWindowsMediaPlayer1.URL = OpenFileDialog1.FileName
            AxWindowsMediaPlayer1.Ctlcontrols.play()
        Catch ex As Exception
            MessageBox.Show("An error has occured, please try again.", "Error", MessageBoxButtons.OK, MessageBoxIcon.Error)
        End Try
    End Sub

    Private Sub FullScreenToolStripMenuItem_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles FullScreenToolStripMenuItem.Click
        Try
            Button1.Show()
            AxWindowsMediaPlayer1.fullScreen = True
            Button1.Focus()
            Button1.Top = True
        Catch ex As Exception
            MessageBox.Show("An error has occured, please contact the coder.", "Error", MessageBoxButtons.OK, MessageBoxIcon.Error)
            Button1.Hide()
        End Try
    End Sub

    Private Sub NotifyIcon1_MouseClick(ByVal sender As System.Object, ByVal e As System.Windows.Forms.MouseEventArgs) Handles NotifyIcon1.MouseClick
        Me.Show()
        NotifyIcon1.Visible = False
    End Sub

    Private Sub MinimizeToTrayToolStripMenuItem_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MinimizeToTrayToolStripMenuItem.Click
        Me.Hide()
        NotifyIcon1.Visible = True
    End Sub

    Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
        AxWindowsMediaPlayer1.fullScreen = False
        Button1.Hide()
    End Sub
End Class
Quote Originally Posted by mnpeep View Post
w8 im uploading now...
EDIT: YouTube - VB helpⓘ it has HORRIBLE quality, so here's the form code:
Code:
Public Class Form2

    Private Sub mexit_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles mexit.Click
        Application.Exit()
    End Sub

    Private Sub play_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles play.Click
        AxWindowsMediaPlayer1.Ctlcontrols.play()
    End Sub

    Private Sub mstop_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles mstop.Click
        AxWindowsMediaPlayer1.Ctlcontrols.stop()
    End Sub

    Private Sub mpause_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles mpause.Click
        AxWindowsMediaPlayer1.Ctlcontrols.pause()
    End Sub

    Private Sub mup_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles mup.Click
        AxWindowsMediaPlayer1.settings.volume = AxWindowsMediaPlayer1.settings.volume + 10
    End Sub

    Private Sub mdown_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles mdown.Click
        AxWindowsMediaPlayer1.settings.volume = AxWindowsMediaPlayer1.settings.volume - 10
    End Sub

    Private Sub mmute_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles mmute.Click
        If AxWindowsMediaPlayer1.settings.volume = AxWindowsMediaPlayer1.settings.mute() Then
            AxWindowsMediaPlayer1.settings.volume = 20
        Else
            AxWindowsMediaPlayer1.settings.volume = AxWindowsMediaPlayer1.settings.mute()
        End If
    End Sub

    Private Sub Open_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Open.Click
        Try
            OpenFileDialog1.InitialDirectory = "My Computer"
            OpenFileDialog1.ShowDialog()
            AxWindowsMediaPlayer1.URL = OpenFileDialog1.FileName
            AxWindowsMediaPlayer1.Ctlcontrols.play()
        Catch ex As Exception
            MessageBox.Show("An error has occured, please try again.", "Error", MessageBoxButtons.OK, MessageBoxIcon.Error)
        End Try
    End Sub

    Private Sub FullScreenToolStripMenuItem_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles FullScreenToolStripMenuItem.Click
        Try
            Button1.Show()
            AxWindowsMediaPlayer1.fullScreen = True
            Button1.Focus()
            Button1.Top = True
        Catch ex As Exception
            MessageBox.Show("An error has occured, please contact the coder.", "Error", MessageBoxButtons.OK, MessageBoxIcon.Error)
            Button1.Hide()
        End Try
    End Sub

    Private Sub NotifyIcon1_MouseClick(ByVal sender As System.Object, ByVal e As System.Windows.Forms.MouseEventArgs) Handles NotifyIcon1.MouseClick
        Me.Show()
        NotifyIcon1.Visible = False
    End Sub

    Private Sub MinimizeToTrayToolStripMenuItem_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MinimizeToTrayToolStripMenuItem.Click
        Me.Hide()
        NotifyIcon1.Visible = True
    End Sub

    Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
        AxWindowsMediaPlayer1.fullScreen = False
        Button1.Hide()
    End Sub
End Class
hey, ill experiment with this tomorrow to help you out k? that is if i dont go to work >.< and if someone else dont help ya

im going to bed now soon..been long day..
tried with the label... same problem
Quote Originally Posted by mnpeep View Post
tried with the label... same problem
k, ill try to help ya tomorrow. i dont know off the top of my head. but, once i open VB and test it out and experiment, ill prolly be able to find a solution. but right now, im tired.... =/
okeydokey can u help me with dim on my tic tac toe code?
i got teamviewer
498 213 695
6354
hmmmm are you trying to make a button that makes the form full screen? or is it just a button on the full screenform?
on top of fullscreen media player, so if i click it, the fullscreen mediaplayer closes.
like a watermark on a photo.
hmmm
i have a button on a fullscreen app that i had and it didnt cause any problems
specifically windows media player...
Quote Originally Posted by mnpeep View Post
specifically windows media player...
could you upload you whole project so i can take a look?
sure, ill attach in a sec...
[attached]
tictactoe.rarattachment deleted · 1 downloads before removal
Posts 1–15 of 15 · Page 1 of 1
This thread is closed for replies.

Similar Threads

Tags for this Thread

None

Talk with us