Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. Visual Basic
  4. Play Video and Audio

Play Video and Audio

Scheduled Pinned Locked Moved Visual Basic
help
4 Posts 3 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • K Offline
    K Offline
    Kumaran21cen
    wrote on last edited by
    #1

    Hi I want to play a mpg file in media player in vb. (i.e.) I have a button called "Play" in VB. If user clicks the play button. Automatically it will open Windows Media Player and play the Appropriate files. Note : It has to support both 2000 and XP systems Please help me...

    Thanks & Regards Kumaran

    C 1 Reply Last reply
    0
    • K Kumaran21cen

      Hi I want to play a mpg file in media player in vb. (i.e.) I have a button called "Play" in VB. If user clicks the play button. Automatically it will open Windows Media Player and play the Appropriate files. Note : It has to support both 2000 and XP systems Please help me...

      Thanks & Regards Kumaran

      C Offline
      C Offline
      Chatura Dilan
      wrote on last edited by
      #2

      System.Diagnostics.Process.Start(Filename) Eg. System.Diagnostics.Process.Start("C:\myVidioFile.mpeg") :)

      Chatura Dilan

      K 1 Reply Last reply
      0
      • C Chatura Dilan

        System.Diagnostics.Process.Start(Filename) Eg. System.Diagnostics.Process.Start("C:\myVidioFile.mpeg") :)

        Chatura Dilan

        K Offline
        K Offline
        Kumaran21cen
        wrote on last edited by
        #3

        Hi Chatura Dilan, I am asking in Visual Basic not in Visual Basic.NET Please tell me..

        Thanks & Regards Kumaran

        C 1 Reply Last reply
        0
        • K Kumaran21cen

          Hi Chatura Dilan, I am asking in Visual Basic not in Visual Basic.NET Please tell me..

          Thanks & Regards Kumaran

          C Offline
          C Offline
          Christian Graus
          wrote on last edited by
          #4

          ShellExecute is how to run the default program, I *think* VB6 does that. If not, can you interop it in VB6 ? ShellExecute is an API call ( that is, something the OS offers to C and C++ )

          Christian Graus - Microsoft MVP - C++ Metal Musings - Rex and my new metal blog "I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )

          1 Reply Last reply
          0
          Reply
          • Reply as topic
          Log in to reply
          • Oldest to Newest
          • Newest to Oldest
          • Most Votes


          • Login

          • Don't have an account? Register

          • Login or register to search.
          • First post
            Last post
          0
          • Categories
          • Recent
          • Tags
          • Popular
          • World
          • Users
          • Groups