Click here to Skip to main content
15,887,875 members
Home / Discussions / C#
   

C#

 
QuestionRunning process under another user account Pin
Paddy Boyd12-Mar-09 23:12
Paddy Boyd12-Mar-09 23:12 
QuestionNeed Help in Developing Basic biometric software using C# and VERILOOK SDK 3.2 for a diploma level student Pin
RogerLum12-Mar-09 21:40
RogerLum12-Mar-09 21:40 
AnswerRe: Need Help in Developing Basic biometric software using C# and VERILOOK SDK 3.2 for a diploma level student Pin
0x3c012-Mar-09 21:45
0x3c012-Mar-09 21:45 
AnswerRe: Need Help in Developing Basic biometric software using C# and VERILOOK SDK 3.2 for a diploma level student Pin
Pete O'Hanlon12-Mar-09 23:38
mvePete O'Hanlon12-Mar-09 23:38 
QuestionMicrosoft.VisualBasic missing namespace Pin
Speedular12-Mar-09 21:33
Speedular12-Mar-09 21:33 
AnswerRe: Microsoft.VisualBasic missing namespace Pin
0x3c012-Mar-09 21:39
0x3c012-Mar-09 21:39 
GeneralRe: Microsoft.VisualBasic missing namespace Pin
Speedular13-Mar-09 1:39
Speedular13-Mar-09 1:39 
GeneralRe: Microsoft.VisualBasic missing namespace Pin
0x3c013-Mar-09 3:37
0x3c013-Mar-09 3:37 
The SoundPlayer class is new to the .net framework, version 2.0. It provides the StartAsync and Stop methods. Put it as a variable in the SaveStop_Click and the Read_Click voids, and instantiate it. Then, just call the methods. Overall, it would look like this:
private void SaveStop_Click(object sender, EventArgs e)
{
    //Your mciSendString stuff goes here
    SoundPlayer player = new SoundPlayer();

    player.Stop();
}

private void Read_Click(object sender, EventArgs e)
{
    SoundPlayer player = new SoundPlayer(@"C:\record.wav");

    player.PlayAsync();
}

AnswerRe: Microsoft.VisualBasic missing namespace Pin
sohighthesky12-Mar-09 22:08
sohighthesky12-Mar-09 22:08 
Questionrollover image Pin
karthii2612-Mar-09 21:32
karthii2612-Mar-09 21:32 
AnswerRe: rollover image Pin
Mycroft Holmes12-Mar-09 21:53
professionalMycroft Holmes12-Mar-09 21:53 
AnswerRe: rollover image Pin
0x3c012-Mar-09 21:53
0x3c012-Mar-09 21:53 
AnswerRe: rollover image Pin
Xmen Real 12-Mar-09 23:34
professional Xmen Real 12-Mar-09 23:34 
GeneralRe: rollover image Pin
Michael Bookatz13-Mar-09 0:20
Michael Bookatz13-Mar-09 0:20 
QuestionHow to run C# application as a web service? Pin
ADIDADPU12-Mar-09 21:16
ADIDADPU12-Mar-09 21:16 
AnswerRe: How to run C# application as a web service? Pin
Ashfield12-Mar-09 21:53
Ashfield12-Mar-09 21:53 
QuestionHOW TO FOCUS PARTICULAR CHILD CONTROL OF MULTIPLE USER CONTROL Pin
Member 183966212-Mar-09 21:13
Member 183966212-Mar-09 21:13 
Questionhow to generate a unique name to my application instance? Pin
abhiram_nayan12-Mar-09 21:01
abhiram_nayan12-Mar-09 21:01 
AnswerRe: how to generate a unique name to my application instance? Pin
stancrm12-Mar-09 21:06
stancrm12-Mar-09 21:06 
GeneralRe: how to generate a unique name to my application instance? Pin
abhiram_nayan12-Mar-09 21:35
abhiram_nayan12-Mar-09 21:35 
GeneralRe: how to generate a unique name to my application instance? Pin
stancrm12-Mar-09 21:52
stancrm12-Mar-09 21:52 
GeneralRe: how to generate a unique name to my application instance? Pin
abhiram_nayan12-Mar-09 22:05
abhiram_nayan12-Mar-09 22:05 
GeneralRe: how to generate a unique name to my application instance? Pin
abhiram_nayan12-Mar-09 22:08
abhiram_nayan12-Mar-09 22:08 
AnswerRe: how to generate a unique name to my application instance? Pin
Mycroft Holmes12-Mar-09 21:56
professionalMycroft Holmes12-Mar-09 21:56 
GeneralRe: how to generate a unique name to my application instance? Pin
abhiram_nayan12-Mar-09 22:04
abhiram_nayan12-Mar-09 22:04 

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.