Click here to Skip to main content
15,921,959 members
Home / Discussions / C#
   

C#

 
GeneralRe: CultureInfo and DateTime.parse Pin
OriginalGriff13-Feb-11 22:41
mveOriginalGriff13-Feb-11 22:41 
GeneralRe: CultureInfo and DateTime.parse Pin
Paul E Davies13-Feb-11 23:24
Paul E Davies13-Feb-11 23:24 
GeneralRe: CultureInfo and DateTime.parse Pin
OriginalGriff14-Feb-11 1:36
mveOriginalGriff14-Feb-11 1:36 
GeneralRe: CultureInfo and DateTime.parse Pin
Paul E Davies14-Feb-11 4:26
Paul E Davies14-Feb-11 4:26 
GeneralRe: CultureInfo and DateTime.parse Pin
OriginalGriff14-Feb-11 9:04
mveOriginalGriff14-Feb-11 9:04 
GeneralRe: CultureInfo and DateTime.parse Pin
Paul E Davies14-Feb-11 21:51
Paul E Davies14-Feb-11 21:51 
Questionsound on btn clik Pin
aeman11-Feb-11 2:28
aeman11-Feb-11 2:28 
AnswerRe: sound on btn clik Pin
OriginalGriff11-Feb-11 2:41
mveOriginalGriff11-Feb-11 2:41 
In that case you have to pass the sound file path through to the other form, or set up a static class:
public static class MakeNoisesAndGeneralyBeAnnoying
     {
     public static string KeyClickSoundFile { get; set; }
     public static void PlayButtonClick()
         {
         String play = KeyClickSoundFile;
         if (play != null)
             {
             // ...play your sund.
             }
         }
     }
Set it from your OpenFileDialog:
string path = @"F:\Temp\click.wav";
MakeNoisesAndGeneralyBeAnnoying.KeyClickSoundFile = path;
And then use it in your Click event:
MakeNoisesAndGeneralyBeAnnoying.PlayButtonClick();


This is one of the very few occasions when I would consider using a static variable justified!
Real men don't use instructions. They are only the manufacturers opinion on how to put the thing together.

Digital man: "You are, in short, an idiot with the IQ of an ant and the intellectual capacity of a hose pipe."

GeneralRe: sound on btn clik Pin
aeman11-Feb-11 4:06
aeman11-Feb-11 4:06 
AnswerRe: sound on btn clik Pin
OriginalGriff11-Feb-11 4:41
mveOriginalGriff11-Feb-11 4:41 
GeneralRe: sound on btn clik Pin
aeman11-Feb-11 5:53
aeman11-Feb-11 5:53 
AnswerRe: sound on btn clik Pin
OriginalGriff11-Feb-11 8:50
mveOriginalGriff11-Feb-11 8:50 
GeneralRe: sound on btn clik Pin
aeman11-Feb-11 21:26
aeman11-Feb-11 21:26 
GeneralRe: sound on btn clik Pin
OriginalGriff11-Feb-11 21:31
mveOriginalGriff11-Feb-11 21:31 
GeneralRe: sound on btn clik Pin
aeman11-Feb-11 22:15
aeman11-Feb-11 22:15 
GeneralRe: sound on btn clik Pin
OriginalGriff11-Feb-11 22:21
mveOriginalGriff11-Feb-11 22:21 
GeneralRe: sound on btn clik Pin
aeman12-Feb-11 5:25
aeman12-Feb-11 5:25 
AnswerRe: sound on btn clik Pin
musefan11-Feb-11 2:47
musefan11-Feb-11 2:47 
AnswerRe: sound on btn clik Pin
DaveyM6911-Feb-11 3:17
professionalDaveyM6911-Feb-11 3:17 
QuestionRTP to streaming webcam P2P or to a webpage [modified] Pin
Honik8911-Feb-11 2:16
Honik8911-Feb-11 2:16 
AnswerRe: RTP to streaming webcam P2P or to a webpage Pin
Ali Al Omairi(Abu AlHassan)11-Feb-11 15:16
professionalAli Al Omairi(Abu AlHassan)11-Feb-11 15:16 
GeneralRe: RTP to streaming webcam P2P or to a webpage Pin
Honik8911-Feb-11 22:13
Honik8911-Feb-11 22:13 
AnswerRe: RTP to streaming webcam P2P or to a webpage Pin
Henry Minute12-Feb-11 3:18
Henry Minute12-Feb-11 3:18 
QuestionIntearact with DB ? Pin
Hum Dum10-Feb-11 22:21
Hum Dum10-Feb-11 22:21 
AnswerRe: Intearact with DB ? Pin
Pete O'Hanlon10-Feb-11 23:27
mvePete O'Hanlon10-Feb-11 23:27 

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.