ok
1. i know how to put a button with media player and make it work in form
so what im trying to do:
2. i need a way to hide media player and put web browser when i hit the right button for it on the same form
Does anyone have any ideas on how to do this?
just give me some clue
Working with WMP In Form
Page 1 of 111 Replies - 957 Views - Last Post: 18 November 2010 - 04:13 PM
Replies To: Working with WMP In Form
#2
Re: Working with WMP In Form
Posted 16 November 2010 - 12:36 AM
Hi,
You can try to hide the WMP like this:
You can try to hide the WMP like this:
AxWindowsMediaPlayer1.Visible = False
#4
Re: Working with WMP In Form
Posted 16 November 2010 - 01:39 AM
here abit of code
what i need to do is hide 2 things on the form it only comes up when u press a button
i hope u can under stand better
Private Sub Button3_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button3.Click
WindowsMediaPlayer1.URL = "mms"
End Sub
Private Sub Button4_Click(ByVal sendr As System.Object, ByVal e As System.EventArgs) Handles Button4.Click
WebBrowser1.Navigate("google.com")
End Sub
what i need to do is hide 2 things on the form it only comes up when u press a button
i hope u can under stand better
#5
Re: Working with WMP In Form
Posted 16 November 2010 - 01:59 AM
gamechick, on 16 November 2010 - 08:39 AM, said:
here abit of code
what i need to do is hide 2 things on the form it only comes up when u press a button
i hope u can under stand better
Private Sub Button3_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button3.Click
WindowsMediaPlayer1.URL = "mms"
End Sub
Private Sub Button4_Click(ByVal sendr As System.Object, ByVal e As System.EventArgs) Handles Button4.Click
WebBrowser1.Navigate("google.com")
End Sub
what i need to do is hide 2 things on the form it only comes up when u press a button
i hope u can under stand better
Hi,
What you can do is in the form load event make your controls invisible like this:
AxWindowsMediaPlayer1.Visible = False Webbrower1.Visible = False
Then in your Button events do it like this:
Private Sub Button3_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button3.Click
AxWindowsMediaPLayer1.Visible = True
WindowsMediaPlayer1.URL = "mms"
End Sub
Private Sub Button4_Click(ByVal sendr As System.Object, ByVal e As System.EventArgs) Handles Button4.Click
WebBrowser1.Visible = True
WebBrowser1.Navigate("google.com")
End Sub
#6
Re: Working with WMP In Form
Posted 16 November 2010 - 05:55 AM
Luc001, on 16 November 2010 - 12:59 AM, said:
gamechick, on 16 November 2010 - 08:39 AM, said:
here abit of code
what i need to do is hide 2 things on the form it only comes up when u press a button
i hope u can under stand better
Private Sub Button3_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button3.Click
WindowsMediaPlayer1.URL = "mms"
End Sub
Private Sub Button4_Click(ByVal sendr As System.Object, ByVal e As System.EventArgs) Handles Button4.Click
WebBrowser1.Navigate("google.com")
End Sub
what i need to do is hide 2 things on the form it only comes up when u press a button
i hope u can under stand better
Hi,
What you can do is in the form load event make your controls invisible like this:
AxWindowsMediaPlayer1.Visible = False Webbrower1.Visible = False
Then in your Button events do it like this:
Private Sub Button3_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button3.Click
AxWindowsMediaPLayer1.Visible = True
WindowsMediaPlayer1.URL = "mms"
End Sub
Private Sub Button4_Click(ByVal sendr As System.Object, ByVal e As System.EventArgs) Handles Button4.Click
WebBrowser1.Visible = True
WebBrowser1.Navigate("google.com")
End Sub
thanks for ur help suck on another part last part when i click on a another button my window media player
wont dispear i dont want windows media player to be on top of a webbrowser
#7
Re: Working with WMP In Form
Posted 16 November 2010 - 05:56 AM
Please do NOT use topic titles like "Help". We KNOW you're here for help, it's WHY you came here and posted. Use a descriptive title for your problem.
Modified title.
Modified title.
#8
Re: Working with WMP In Form
Posted 16 November 2010 - 06:05 AM
#10
Re: Working with WMP In Form
Posted 16 November 2010 - 04:02 PM
the code isnt hidin the media player when i click on another buttons
#11
Re: Working with WMP In Form
Posted 17 November 2010 - 12:13 AM
Hi,
If only Button3 and button4 showing the WMP and Webbrowser then you can do it like this:
If only Button3 and button4 showing the WMP and Webbrowser then you can do it like this:
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
AxWindowsMediaPLayer1.Visible = False
Webbrowser1.Visible = False
' Codes for the button1 event
End Sub
Private Sub Button2_Click(ByVal sendr As System.Object, ByVal e As System.EventArgs) Handles Button2.Click
AxWindowsMediaPLayer1.Visible = False
Webbrowser1.Visible = False
' Codes for the button2 event
End Sub
#12
Re: Working with WMP In Form
Posted 18 November 2010 - 04:13 PM
Luc001, on 16 November 2010 - 11:13 PM, said:
Hi,
If only Button3 and button4 showing the WMP and Webbrowser then you can do it like this:
If only Button3 and button4 showing the WMP and Webbrowser then you can do it like this:
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
AxWindowsMediaPLayer1.Visible = False
Webbrowser1.Visible = False
' Codes for the button1 event
End Sub
Private Sub Button2_Click(ByVal sendr As System.Object, ByVal e As System.EventArgs) Handles Button2.Click
AxWindowsMediaPLayer1.Visible = False
Webbrowser1.Visible = False
' Codes for the button2 event
End Sub
thanks i already fixed this on to my browser but i wanna do this myself but thanks for u help
Page 1 of 1
|
|

New Topic/Question
Reply




MultiQuote





|