[B]1.[/B] Right click on your project name in solution explorer. [B]2.[/B] Point the cursor on [COLOR="Green"]Add[/COLOR] then choose [COLOR="Green"]Existing Item...[/COLOR] [B]3.[/B] Now go to the Location of your sound file and select that sound file. [B]4.[/B] Now select your sound file in solution explorer then Right click on it choose Properties and change its [COLOR="Red"]Build Action[/COLOR] property([COLOR="Green"]Content[/COLOR] to [COLOR="Green"]Embedded Resource[/COLOR]) [B]5.[/B][COLOR="Green"]Build [/COLOR]the program or one time [COLOR="Green"]Debug[/COLOR] the program. [B]6.[/B] Now if you want to play sound file when a particular Form is loaded then use the given code in [COLOR="Green"]Form_Load[/COLOR] event. [B][COLOR="Green"]NOTE:-[/COLOR][/B]In this code [COLOR="Red"]Dreamer.wav [/COLOR]is name of sound …

Member Avatar
Member Avatar
+3 forum 11

A jagged array is an array whose elements are arrays. The elements of a jagged array can be of different dimensions and sizes. A jagged array is sometimes called an "array of arrays". [COLOR="Red"]NOTE:-[/COLOR] I'm using Single dimensional jagged array. Actually I am using single and multi dimensional arrays as a element of single dimensional jagged array. You can use "foreach" to print jagged arrays. Paste PrintSingleDimentionalJaggedArray() and PrintMultiDimJaggedArray() methods in [COLOR="red"]main[/COLOR] method. You can download the example JaggedArray.zip file which is given below...

Member Avatar
Member Avatar
+1 forum 2

Hi....... This code is useful to check given string is palindrome or not. Actually, there are some other way also to check palindrome. So, be careful which code gives better efficiency. You can [COLOR="Red"]comment the line[/COLOR][COLOR="Green"]-bool caseignore= str.Equals(revstr, StringComparison.OrdinalIgnoreCase);[/COLOR] and in [B][COLOR="Red"]if[/COLOR][/B] condition you can use- if(string.Compare(str,revstr,true)==0)

Member Avatar
Member Avatar
+0 forum 1

The End.