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. C#
  4. How Syncronize..in C#???

How Syncronize..in C#???

Scheduled Pinned Locked Moved C#
csharpquestion
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.
  • V Offline
    V Offline
    VisualLive
    wrote on last edited by
    #1

    Hi , i-m looking around to work out a feature im my project but i did not see nothing about that or useful, i need to synchronize Window Media PLayer with a ListBox or better i wish show in a listBox the current song that WMP is playing in real time and when WMP change the song the list box will change in syncronize with WMP . Do you know any way to work out this feature or have any idea to make me calm down? :) Thanks in advantage and have a happy day. Nice Regards

    D L 2 Replies Last reply
    0
    • V VisualLive

      Hi , i-m looking around to work out a feature im my project but i did not see nothing about that or useful, i need to synchronize Window Media PLayer with a ListBox or better i wish show in a listBox the current song that WMP is playing in real time and when WMP change the song the list box will change in syncronize with WMP . Do you know any way to work out this feature or have any idea to make me calm down? :) Thanks in advantage and have a happy day. Nice Regards

      D Offline
      D Offline
      dan sh
      wrote on last edited by
      #2

      Does this[^] helps?

      जय हिंद

      1 Reply Last reply
      0
      • V VisualLive

        Hi , i-m looking around to work out a feature im my project but i did not see nothing about that or useful, i need to synchronize Window Media PLayer with a ListBox or better i wish show in a listBox the current song that WMP is playing in real time and when WMP change the song the list box will change in syncronize with WMP . Do you know any way to work out this feature or have any idea to make me calm down? :) Thanks in advantage and have a happy day. Nice Regards

        L Offline
        L Offline
        lisan_al_ghaib
        wrote on last edited by
        #3

        Hi, The idea is to read specific media player registers. to get current played song informations: In .net you can use the RegistryKey class to have acces to registers: Note: Reg path from WMP: Software\Microsoft\MediaPlayer\CurrentMetadata RegistryKey regData = Registry.CurrentUser.OpenSubKey("Software\Microsoft\MediaPlayer\CurrentMetadata", false); if (regData != null) //you have to do this check, to prevent from a null reference exception { string currSongTitle = regData.GetValue("Title", "No Title") as string; //... // Check google to see other WMP Keys... } Hope this help

        V 1 Reply Last reply
        0
        • L lisan_al_ghaib

          Hi, The idea is to read specific media player registers. to get current played song informations: In .net you can use the RegistryKey class to have acces to registers: Note: Reg path from WMP: Software\Microsoft\MediaPlayer\CurrentMetadata RegistryKey regData = Registry.CurrentUser.OpenSubKey("Software\Microsoft\MediaPlayer\CurrentMetadata", false); if (regData != null) //you have to do this check, to prevent from a null reference exception { string currSongTitle = regData.GetValue("Title", "No Title") as string; //... // Check google to see other WMP Keys... } Hope this help

          V Offline
          V Offline
          VisualLive
          wrote on last edited by
          #4

          Hi first thanks for your fast reply, i have 3 folders music(each week we will update music) and WMP will change each 4 hour a folder music with a Timer so i need a listbox that allow me to search a song and if i will change item automatically WMP will change song. In my case can be useful RegistryKey class? Sorry i'm beginner; Nice Regards :)

          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