RSS

Monthly Archives: February 2014

play mp3/wav background c#


 this code u will be able to play wave as well as MP3 File if working dont forgate to mark solved

For example use this code for .mp3:

WMPLib.WindowsMediaPlayer wplayer = new WMPLib.WindowsMediaPlayer();

wplayer.URL = "My MP3 file.mp3";
wplayer.Controls.Play();

For example use this code for .wav:

 

System.Media.SoundPlayer player = new System.Media.SoundPlayer();

player.SoundLocation = "Sound.wav";
player.Play();

 

 

 

 

 

Advertisements
 
Leave a comment

Posted by on February 11, 2014 in Uncategorized

 

Tags: , ,

update specific string of sql column


 

UPDATE [table]
SET [column] = REPLACE([column], 'foo', 'bar')



Example 

UPDATE  [Treasury2].[dbo].[tblBranch]
SET [BranchName] = REPLACE([BranchName], 'SAMA', 'Sajjad Ahmed')


sql column update
 
Leave a comment

Posted by on February 6, 2014 in SQL Query

 

Tags: ,