View Poll Results: Was it usefull?

Voters
17. This poll is closed
  • Yes!

    6 35.29%
  • No!

    5 29.41%
  • No, It did not work!

    0 0%
  • Yes, Make more!

    2 11.76%
  • None of the above.

    4 23.53%
Page 2 of 2 FirstFirst 12
Results 16 to 20 of 20
  1. #16
    Jerry12358's Avatar
    Join Date
    Aug 2009
    Gender
    male
    Location
    gdg
    Posts
    28
    Reputation
    10
    Thanks
    16
    My Mood
    Drunk
    Thanks :d, want me to make more?

  2. #17
    Sixx93's Avatar
    Join Date
    Sep 2009
    Gender
    male
    Posts
    673
    Reputation
    21
    Thanks
    250
    My Mood
    Cool
    it says that "opd" isn't declared

  3. #18
    NextGen1's Avatar
    Join Date
    Dec 2009
    Gender
    male
    Location
    Not sure really.
    Posts
    6,312
    Reputation
    382
    Thanks
    3,019
    My Mood
    Amazed
    Interesting...........

    Devasp.net has this tutorial...

    Note: Same order as tutorial below (how likely is that)
    Same names for the controls ( keep in mind you can choose any name, so how likely is that)
    Same volume + settings (you can set that number to anything, both tuts set to + 10 and - 10, just to many similarities, identical )

    If you make a tutorial and steal the code from someone elses hard work, at least have the decency to give them credit, start learning the language, and stop pretending you know it (thats general for all those who can't give proper credit and or plagiarize)

    Start visual studio and create a new window application project.
    Set the following properties of Form by using properties windows.

    Code:
    Text = Media Player, BoarderStyle = FixedSingle, maximizeBox  = False, Size = 298,298
    Now right click on the toolbar and from the menu choose “Add/Remove Items”. A dialog box will appear choose the “COM Component” tab. Search for windows media player and check it by clicking in the checkbox. Click ok. Now in your toolbox a new item is added with the name of window media player.


    Drop this to your form and set the following properties.

    Code:
    Name = player, Size = 298,250
    Drop a main menu control to build the menu for media player
    Build the menu in the following hierarchy and set there names as shown in parenthesis.

    Code:
    File 
       Open (open)
       Exit (mexit)
     
    Player
        Play (play)
        Stop (mstop)
         Pause (mpause)
     
    Volume
         Up   (mup)
         Down (mdown)
         Mute (mmute)
    From toolbox drop a “OpenFileDialogBox” control to your form.
    Set its name to “opd”.
    Open the code window and write the code as below in your code window.

    Code:
    Private Sub open_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles open.Click
    Try
       opd.InitialDirectory = "c:\"
       opd.ShowDialog()
       player.URL = opd.FileName
       player.Ctlcontrols.play()
     
    Catch ex As Exception
      MessageBox.Show("Some error occur so can't play media", "Error", MessageBoxButtons.OK, MessageBoxIcon.Error)
     
    End Try
     
    End Sub


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

    Code:
    Private Sub play_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles play.Click
     
        player.Ctlcontrols.play()
     
    End Sub
    Code:
    Private Sub mstop_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles mstop.Click
     
            player.Ctlcontrols.stop()
     
    End Sub

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

    Code:
    Private Sub mup_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles mup.Click
     
            player.settings.volume = player.settings.volume + 10
     
    End Sub
    Code:
    Private Sub mdown_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles mdown.Click
     
            player.settings.volume = player.settings.volume - 10
     
    End Sub

    Code:
    Private Sub mmute_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles mmute.Click
     
    If player.settings.volume = player.settings.mute() Then
     
       player.settings.volume = 20
     
    Else
     
       player.settings.volume = player.settings.mute()
     
    End If
     
    End Sub
    Last edited by NextGen1; 12-30-2009 at 05:06 PM.


     


     


     



    The Most complete application MPGH will ever offer - 68%




  4. The Following User Says Thank You to NextGen1 For This Useful Post:

    Hell_Demon (01-03-2010)

  5. #19
    ry4ntheman's Avatar
    Join Date
    Nov 2009
    Gender
    male
    Posts
    12
    Reputation
    10
    Thanks
    1
    My Mood
    Bored
    does this work for vb 2008? coz it just says
    Handles clause requires a WithEvents variable defined in the containing type or one of its base types, Name 'opd' is not declared.
    Keyword is not valid as an identifier.
    Name 'player' is not declared.
    and there is double of these errors

  6. #20
    cookie hack's Avatar
    Join Date
    Nov 2009
    Gender
    male
    Location
    Everywhere
    Posts
    150
    Reputation
    10
    Thanks
    11
    My Mood
    Relaxed
    When i finished it visual basic said the "opd" is not declared from the open part.

    Try
    opd.InitialDirectory = "c:\"
    opd.ShowDialog()
    player.URL = opd.FileName
    player.Ctlcontrols.play()
    Catch ex As Exception
    MessageBox.Show("An error has occured, please try again.", "Error", MessageBoxButtons.OK, MessageBoxIcon.Error)
    End Try


    [IMG]https://i251.photobucke*****m/albums/gg291/h0tpinkninJa/NeilPeart.jpg[/IMG]



Page 2 of 2 FirstFirst 12

Similar Threads

  1. [TUT]How To Make Your Own Combat Arms Launcher Skin[TUT]
    By Corndog in forum Combat Arms Hacks & Cheats
    Replies: 46
    Last Post: 08-12-2009, 03:40 PM
  2. [TuT] How to make your own tags
    By Joshcarr2006 in forum CrossFire Hacks & Cheats
    Replies: 28
    Last Post: 06-03-2009, 05:57 PM
  3. [TuT] How to make your own toolbar easily!
    By johnny608 in forum Programming Tutorials
    Replies: 3
    Last Post: 04-24-2009, 04:11 PM
  4. {TUT} How to make your own opk hack
    By mandog10 in forum Combat Arms Hacks & Cheats
    Replies: 28
    Last Post: 08-13-2008, 02:44 PM
  5. (TUT)how to make your own warrock menu
    By aprill27 in forum WarRock - International Hacks
    Replies: 0
    Last Post: 09-21-2007, 03:46 PM