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

C#

 
AnswerRe: Free Audio/Video Library for C# Pin
Thomas Stockwell14-Jul-07 7:39
professionalThomas Stockwell14-Jul-07 7:39 
QuestionHow to check if RPC Server is available [modified] Pin
beatles169213-Jul-07 21:41
beatles169213-Jul-07 21:41 
AnswerRe: How to check if RPC Server is available Pin
Mike Dimmick14-Jul-07 8:09
Mike Dimmick14-Jul-07 8:09 
GeneralRe: How to check if RPC Server is available Pin
beatles169214-Jul-07 22:39
beatles169214-Jul-07 22:39 
Questionmouse enter event [modified] Pin
treah13-Jul-07 20:49
treah13-Jul-07 20:49 
AnswerRe: mouse enter event Pin
satsumatable13-Jul-07 22:08
satsumatable13-Jul-07 22:08 
GeneralRe: mouse enter event Pin
treah14-Jul-07 0:23
treah14-Jul-07 0:23 
GeneralRe: mouse enter event Pin
Luc Pattyn14-Jul-07 2:54
sitebuilderLuc Pattyn14-Jul-07 2:54 
Hi,

some suggestions:
1. have only one SoundPlayer, make it a class member
2. dont use variable names such as a and b, no one understands them (including yourself)
3. have a bool "soundEnabled" which gets set/cleared by button5 and ...
4. have a bool "alreadyPlaying" to prevent multiple concurrent sounds
5. is MouseEnter handler first check soundEnabled, if false, dont do anything;
check alreadyPlaying, if false, set it true and start sound asynchronously
6. biggest problem will be how to clear alreadyPlaying since there is no event for end of
sound. Maybe a Forms.Timer is the way to go.

Smile | :)


QuestionC# Layout Pin
satsumatable13-Jul-07 20:03
satsumatable13-Jul-07 20:03 
AnswerRe: C# Layout Pin
Michael Sync13-Jul-07 20:10
Michael Sync13-Jul-07 20:10 
GeneralRe: C# Layout Pin
satsumatable13-Jul-07 20:13
satsumatable13-Jul-07 20:13 
GeneralRe: C# Layout Pin
Michael Sync13-Jul-07 20:24
Michael Sync13-Jul-07 20:24 
GeneralRe: C# Layout Pin
satsumatable13-Jul-07 20:28
satsumatable13-Jul-07 20:28 
GeneralRe: C# Layout Pin
Michael Sync13-Jul-07 20:45
Michael Sync13-Jul-07 20:45 
QuestionHow do I make a URL safe? Pin
Winkles13-Jul-07 19:13
Winkles13-Jul-07 19:13 
AnswerRe: How do I make a URL safe? Pin
Michael Sync13-Jul-07 20:07
Michael Sync13-Jul-07 20:07 
AnswerRe: How do I make a URL safe? Pin
Guffa13-Jul-07 23:29
Guffa13-Jul-07 23:29 
QuestionGet Control from another form Pin
T.EDY13-Jul-07 19:01
T.EDY13-Jul-07 19:01 
AnswerRe: Get Control from another form Pin
Michael Sync13-Jul-07 20:22
Michael Sync13-Jul-07 20:22 
GeneralRe: Get Control from another form Pin
T.EDY15-Jul-07 17:39
T.EDY15-Jul-07 17:39 
AnswerRe: Get Control from another form Pin
Urs Enzler14-Jul-07 4:45
Urs Enzler14-Jul-07 4:45 
QuestionOnComm Events in MSCOMM OCX control Pin
AmarjeetSinghMatharu13-Jul-07 18:38
AmarjeetSinghMatharu13-Jul-07 18:38 
AnswerRe: OnComm Events in MSCOMM OCX control Pin
Dave Kreskowiak14-Jul-07 4:00
mveDave Kreskowiak14-Jul-07 4:00 
QuestionWin32 API? Pin
andyvm13-Jul-07 15:33
andyvm13-Jul-07 15:33 
AnswerRe: Win32 API? Pin
Ky Nam14-Jul-07 4:42
Ky Nam14-Jul-07 4:42 

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.