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