Click here to Skip to main content
15,914,111 members
Home / Discussions / C#
   

C#

 
GeneralRe: Masked TextBox .Net 2.0 Pin
Dave Sexton28-Jun-07 2:14
Dave Sexton28-Jun-07 2:14 
GeneralRe: Masked TextBox .Net 2.0 Pin
KrunalC28-Jun-07 2:34
KrunalC28-Jun-07 2:34 
GeneralRe: Masked TextBox .Net 2.0 Pin
Dave Sexton28-Jun-07 2:42
Dave Sexton28-Jun-07 2:42 
QuestionTreeNode's Image Pin
jason_mf27-Jun-07 23:27
jason_mf27-Jun-07 23:27 
AnswerRe: TreeNode's Image Pin
Luc Pattyn27-Jun-07 23:52
sitebuilderLuc Pattyn27-Jun-07 23:52 
QuestionPassing value from one user control to another user control Pin
Deepml27-Jun-07 22:56
Deepml27-Jun-07 22:56 
AnswerRe: Passing value from one user control to another user control Pin
marky77727-Jun-07 23:33
marky77727-Jun-07 23:33 
Questionplay wavefile Pin
treah27-Jun-07 22:45
treah27-Jun-07 22:45 
hi,
i want to play wave file i have written following code but its not working.plz tell me how can i do this?
private void playsound()
{
string sysRoot = System.Environment.SystemDirectory;
OpenFileDialog dlg = new OpenFileDialog();
dlg.AddExtension = true;
dlg.Filter = "Wave files (*.wav)|*.wav|All files (*.*)|*.*";
sysRoot = "C:\\WINNT\\Media\\ir_begin.wav";
dlg.InitialDirectory = sysRoot + @"\..\Media"; // start in media folder



int err = 0; // last error

try
{
string tbFileName = dlg.FileName;
// play the sound from the selected filename
if (!PlaySound(tbFileName, IntPtr.Zero,
SoundFlags.SND_FILENAME | SoundFlags.SND_ASYNC))
MessageBox.Show(this,
"Unable to find specified sound file or default Windows sound");
}
catch
{
err = Marshal.GetLastWin32Error();
if (err != 0)
MessageBox.Show(this,
"Error " + err.ToString(),
"PlaySound() failed",
MessageBoxButtons.OK,
MessageBoxIcon.Error);
}
}

i have written this function to play wave file.Frown | :(
AnswerRe: play wavefile Pin
Giorgi Dalakishvili27-Jun-07 22:48
mentorGiorgi Dalakishvili27-Jun-07 22:48 
AnswerRe: play wavefile Pin
Luc Pattyn27-Jun-07 22:49
sitebuilderLuc Pattyn27-Jun-07 22:49 
QuestionAccessing SqlServer in script [modified] Pin
razanabanu27-Jun-07 22:41
razanabanu27-Jun-07 22:41 
AnswerRe: Accessing SqlServer in script Pin
Colin Angus Mackay27-Jun-07 22:54
Colin Angus Mackay27-Jun-07 22:54 
GeneralRe: Accessing SqlServer in script Pin
razanabanu27-Jun-07 23:55
razanabanu27-Jun-07 23:55 
GeneralRe: Accessing SqlServer in script Pin
Colin Angus Mackay28-Jun-07 11:52
Colin Angus Mackay28-Jun-07 11:52 
QuestionNeed equivalent namespace in vb.net Pin
rahul.net1127-Jun-07 22:39
rahul.net1127-Jun-07 22:39 
AnswerRe: Need equivalent namespace in vb.net Pin
Pete O'Hanlon27-Jun-07 22:40
mvePete O'Hanlon27-Jun-07 22:40 
GeneralRe: Need equivalent namespace in vb.net Pin
rahul.net1127-Jun-07 22:55
rahul.net1127-Jun-07 22:55 
GeneralRe: Need equivalent namespace in vb.net Pin
rahul.net1127-Jun-07 23:20
rahul.net1127-Jun-07 23:20 
GeneralRe: Need equivalent namespace in vb.net Pin
Christian Graus28-Jun-07 0:45
protectorChristian Graus28-Jun-07 0:45 
AnswerRe: Need equivalent namespace in vb.net Pin
Luc Pattyn27-Jun-07 23:37
sitebuilderLuc Pattyn27-Jun-07 23:37 
QuestionProblem in array……… Pin
help as an alias27-Jun-07 22:15
help as an alias27-Jun-07 22:15 
AnswerRe: Problem in array……… Pin
Manas Bhardwaj27-Jun-07 22:32
professionalManas Bhardwaj27-Jun-07 22:32 
GeneralRe: Problem in array……… Pin
Sathesh Sakthivel27-Jun-07 22:34
Sathesh Sakthivel27-Jun-07 22:34 
GeneralRe: Problem in array……… Pin
Martin#27-Jun-07 22:37
Martin#27-Jun-07 22:37 
GeneralRe: Problem in array……… Pin
Luc Pattyn27-Jun-07 22:45
sitebuilderLuc Pattyn27-Jun-07 22:45 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.