11 Replies - 1102 Views - Last Post: 18 November 2010 - 04:13 PM Rate Topic: -----

#1 gamechick  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 22
  • Joined: 16-January 09

Working with WMP In Form

Posted 16 November 2010 - 12:25 AM

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
Is This A Good Question/Topic? 0
  • +

Replies To: Working with WMP In Form

#2 Luc001  Icon User is offline

  • D.I.C Addict

Reputation: 84
  • View blog
  • Posts: 617
  • Joined: 04-May 09

Re: Working with WMP In Form

Posted 16 November 2010 - 12:36 AM

Hi,

You can try to hide the WMP like this:

AxWindowsMediaPlayer1.Visible = False

Was This Post Helpful? 0
  • +
  • -

#3 gamechick  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 22
  • Joined: 16-January 09

Re: Working with WMP In Form

Posted 16 November 2010 - 12:44 AM

thank you :)
Was This Post Helpful? 0
  • +
  • -

#4 gamechick  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 22
  • Joined: 16-January 09

Re: Working with WMP In Form

Posted 16 November 2010 - 01:39 AM

here abit of code


    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
Was This Post Helpful? 0
  • +
  • -

#5 Luc001  Icon User is offline

  • D.I.C Addict

Reputation: 84
  • View blog
  • Posts: 617
  • Joined: 04-May 09

Re: Working with WMP In Form

Posted 16 November 2010 - 01:59 AM

View Postgamechick, on 16 November 2010 - 08:39 AM, said:

here abit of code


    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


Was This Post Helpful? 1
  • +
  • -

#6 gamechick  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 22
  • Joined: 16-January 09

Re: Working with WMP In Form

Posted 16 November 2010 - 05:55 AM

View PostLuc001, on 16 November 2010 - 12:59 AM, said:

View Postgamechick, on 16 November 2010 - 08:39 AM, said:

here abit of code


    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
Was This Post Helpful? 0
  • +
  • -

#7 JackOfAllTrades  Icon User is offline

  • Saucy!
  • member icon

Reputation: 6039
  • View blog
  • Posts: 23,437
  • Joined: 23-August 08

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.
Was This Post Helpful? 0
  • +
  • -

#8 gamechick  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 22
  • Joined: 16-January 09

Re: Working with WMP In Form

Posted 16 November 2010 - 06:05 AM

View PostJackOfAllTrades, on 16 November 2010 - 04:56 AM, said:

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.



sorry i will remember for next time
Was This Post Helpful? 0
  • +
  • -

#9 gamechick  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 22
  • Joined: 16-January 09

Re: Working with WMP In Form

Posted 16 November 2010 - 07:02 AM

anyone?
Was This Post Helpful? 0
  • +
  • -

#10 gamechick  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 22
  • Joined: 16-January 09

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
Was This Post Helpful? 0
  • +
  • -

#11 Luc001  Icon User is offline

  • D.I.C Addict

Reputation: 84
  • View blog
  • Posts: 617
  • Joined: 04-May 09

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:


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


Was This Post Helpful? 0
  • +
  • -

#12 gamechick  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 22
  • Joined: 16-January 09

Re: Working with WMP In Form

Posted 18 November 2010 - 04:13 PM

View PostLuc001, 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:


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 :)
Was This Post Helpful? 0
  • +
  • -

Page 1 of 1