Autor Beitrag
GoginhoII
Hält's aus hier
Beiträge: 1



BeitragVerfasst: Mi 18.07.07 13:09 
Hallo Zusammen, ich schreibe nen kleines Programm, was Mp3's abspielen -und anschliessend auch zurecht schneiden kann.

Habe jetzt nen kleines Problem mit dem Start & Stop Button.

Hier mal der Code:
ausblenden C#-Quelltext
1:
2:
3:
4:
5:
6:
7:
public void toolStripButton1_Click(object sender, EventArgs e)
        {
            mp3 = ofd.FileName;

            Audio soundPlay = new Audio(mp3);
            soundPlay.Play();
        }

Wie deklarier ich jetzt "soundPlay" für alle anderen Button, also Global..?

Danke für eure Hilfe..!


Moderiert von user profile iconraziel: C#-Tags hinzugefügt
Leuchtturm
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 1087

Win Vista, Knoppix, Ubuntu
Delphi 7 Pe, Turbo Delphi, C#(VS 2005 Express), (X)HTML + CSS, bald Assembler
BeitragVerfasst: Mi 18.07.07 13:44 
C#-Tags verwenden:
Crosspost

_________________
Ich bin dafür verantwortlich was ich sage - nicht dafür was du verstehst.